CircleF

References
Adds a Circle type to the Eto.Drawing namespace.

Constructors

CircleF

#
Create a new Circle.
public CircleF(
centreX,
Centre point x.
centreY,
Centre point y.
radius
Radius.
)

CircleF

#
Create a new Circle.
public CircleF(
PointF
centre,
Centre point.
radius
Radius.
)

Properties

Area

#
Gets the area of this circle. If the radius is negative, so will the area be.
public float Area { get; }

Bounds

#
Gets the bounds of this circle.
public RectangleF Bounds { get; }

Centre

#
Gets or sets the centre point of the circle.
public PointF Centre { get; set; }

Circumference

#
Gets the circumference of this circle. Circles with negative radii will have negative circumferences.
public float Circumference { get; }

Empty

#
Returns an empty circle.
public static CircleF Empty { get; }

Equation

#
Gets the equation for the current circle.
public CircleEquation Equation { get; }

IsEmpty

#
Gets whether this circle is empty, ie. has a radius of exactly zero.
public bool IsEmpty { get; }

IsUnset

#
Gets whether this circle is unset, ie. whether any of its values are NaNs.
public bool IsUnset { get; }

Radius

#
Gets or sets the radius of the circle.
public float Radius { get; set; }

Unset

#
Returns an unset circle.
public static CircleF Unset { get; }

Methods

CircumscribedCircle

#
Gets the smallest circle which entirely contains the rectangle.
public static CircleF CircumscribedCircle(
RectangleF
rectangle
Rectangle to contain.
)
Circle.

ClosestPointOnDisc

#
Gets the point on the circle disc closest to a locus point.
[Pure] public PointF ClosestPointOnDisc(
PointF
point
Locus point.
)
Point on circle disc.

ClosestPointOnEdge

#
Gets the point on the circle boundary closest to a locus point.
[Pure] public PointF ClosestPointOnEdge(
PointF
point
Locus point.
)
Point on circle edge.

CompareTo

#
Compare this circle to another.
public int CompareTo(
other
Circle to compare to.
)
Sort order.

Contains

#
Test whether this circle contains a point.
[Pure] public bool Contains(
PointF
point
Point to test.
)
True if the point is on or in this circle.

DistanceToDisc

#
Gets the distance from a point to the boundary of the circle.
[Pure] public float DistanceToDisc(
PointF
point
Point to measure.
)
Distance from circle edge to point.

DistanceToEdge

#
Gets the distance from a point to the boundary of the circle.
[Pure] public float DistanceToEdge(
PointF
point
Point to measure.
)
Distance from circle edge to point.

Divide

#
Divide the circle into segments.
[Pure] public PointF[] Divide(
deviation
Maximum deviation between circle and polygon.
)
Array of points. The first and last point are coincident.

Equals

#
Compare one circle to another.
public bool Equals(
other
Circle to compare to.
)
True if circles are equals.

InscribedCircle

#
Gets the biggest circle which exists entirely within the rectangle.
public static CircleF InscribedCircle(
RectangleF
rectangle
Rectangle to fit into.
)
Circle.

Offset

#
Modify a circle by offsetting it.
[Pure] public CircleF Offset(
amount
Amount to offset.
)
Offsetted circle.

PointAt

#
Gets the point on the circle at the given angle.
[Pure] public PointF PointAt(
angle
Angle in degrees, clockwise starting from positive x.
)
Point on circle.

PointIn

#
Gets the point on the circle space at the given angle and offset.
[Pure] public PointF PointIn(
angle,
Angle in degrees, clockwise starting from positive x.
radius
Distance from circle centre in multiples of the radius.
)
Point in circular space.

Relation

#
Solve the geometric relationship between two circles.
public static ShapeRelation Relation(
a,
First circle.
b
Second circle.
)
Relationship.

Relation

#
Solve the geometric relationship between a circle and a rectangle.
public static ShapeRelation Relation(
a,
Circle.
RectangleF
b
Rectangle.
)
Relationship.

ThroughPoints

#
Fit a circle through three points.
public static CircleF ThroughPoints(
PointF
p0,
First point.
PointF
p1,
Second point.
PointF
p2
Third point.
)
Fitted circle.

ThroughPoints

#
Fit a circle through two points.
public static CircleF ThroughPoints(
PointF
p0,
First point.
PointF
p1
Second point.
)
Fitted circle.

ToString

#
Gets a string representation of this circle.
public override string ToString()
Description.

Convertors

OperationResultDescription
implicitCircleFCircleDefines widening conversion from Eto.Circle to Rhino.Geometry.Circle.
implicitCircleCircleFDefines widening conversion from Rhino.Geometry.Circle to Eto.Circle.
implicitCircleFRectangleFDefines widening conversion to Bounding rectangle.