C# Class Accord.Math.Geometry.Circle

2D circle class.
Show file Open project: accord-net/framework Class Usage Examples

Public Methods

Method Description
Circle ( ) : System

Creates a new unit Circle at the origin.

Circle ( Point p1, Point p2, Point p3 ) : System

Creates a new Circle from three non-linear points.

Circle ( Point origin, double radius ) : System

Creates a new Circle with the given radius centered at the given center point coordinates.

Circle ( double x, double y, double radius ) : System

Creates a new Circle with the given radius centered at the given x and y coordinates.

Circle ( float x, float y, double radius ) : System

Creates a new Circle with the given radius centered at the given x and y coordinates.

DistanceToPoint ( Point point ) : double

Computes the distance from circle to point.

Method Details

Circle() public method

Creates a new unit Circle at the origin.
public Circle ( ) : System
return System

Circle() public method

Creates a new Circle from three non-linear points.
public Circle ( Point p1, Point p2, Point p3 ) : System
p1 Point The first point.
p2 Point The second point.
p3 Point The third point.
return System

Circle() public method

Creates a new Circle with the given radius centered at the given center point coordinates.
public Circle ( Point origin, double radius ) : System
origin Point The point at the circle's center.
radius double The circle radius.
return System

Circle() public method

Creates a new Circle with the given radius centered at the given x and y coordinates.
public Circle ( double x, double y, double radius ) : System
x double The x-coordinate of the circle's center.
y double The y-coordinate of the circle's center.
radius double The circle radius.
return System

Circle() public method

Creates a new Circle with the given radius centered at the given x and y coordinates.
public Circle ( float x, float y, double radius ) : System
x float The x-coordinate of the circle's center.
y float The y-coordinate of the circle's center.
radius double The circle radius.
return System

DistanceToPoint() public method

Computes the distance from circle to point.
public DistanceToPoint ( Point point ) : double
point Point The point to have its distance from the circle computed.
return double