Circle2

References
public class Circle2
Represents a circle, defined by origin and radius

Constructors

Circle2

#
Blank constructor
public Circle2()

Circle2

#
Duplicate another circle.
public Circle2(
Circle2
other
Circle to mimic
)

Circle2

#
Create a circle through 3 points.
public Circle2(
A,
First point
B,
Second point
C
Third point
)

Circle2

#
Create a circle from origin and radius
public Circle2(
origin,
Origin point of circle
radius
Radius of circle (>0.0 for valid circle)
)

Fields

O

#
public Node2 O

R

#
public double R

Properties

Area

#
public double Area { get; }

Circumference

#
public double Circumference { get; }

Methods

Circle3Pt

#
Fit a circle through three 2d points.
public static bool Circle3Pt(
ax,
X of first point
ay,
Y of first point
bx,
X of second point
by,
Y of second point
cx,
X of third point
cy,
Y of third point
ref double
ox,
X of origin
ref double
oy,
Y of origin
ref double
r2
Radius squared
)
True if circle is valid, False if points are coincident or colinear.

ClosestPointTo

#
public double ClosestPointTo()

ClosestPointTo

#
public double ClosestPointTo()

ClosestPointTo

#
public Node2 ClosestPointTo(
x,
y,
ref double
t
)

ClosestPointTo

#
public Node2 ClosestPointTo(
pt,
ref double
t
)

Contains

#
public Containment Contains()

Contains

#
public Containment Contains()

Duplicate

#
Create an exact duplicate of this circle.
public Circle2 Duplicate()

Intersect

#
public LineCircleX Intersect(
line,
ref double
l0,
ref double
l1,
ref double
a0,
ref double
a1
)

Intersect

#
public LineCircleX Intersect(
line,
ref double
l0,
ref double
l1
)

PointAt

#
Get the point ON the circle at parameter t
public Node2 PointAt(
t
Parameter to evaluate at: (0.0, t, 2pi)
)

TangentAt

#
public Vec2 TangentAt()