CircleEquation

References
public readonly struct CircleEquation
Represents the implicit equation of a circle.

Constructors

CircleEquation

#
public CircleEquation(float x, float y, float radius)
Construct a new circle equation.
x (float)Centre x.
y (float)Centre y.
radius (float)Radius.

Methods

Evaluate

#
public float Evaluate(float x, float y)
Evaluate a coordinate pair. Zero scalar reside on the circle, negative values are inside the circle. The centre of the circle is associated with the most negative value of -(radius²).
x (float)X coordinate.
y (float)Y coordinate.
Scalar according to circle equation.

ToString

#
public override string ToString()
Returns the fully qualified type name of this instance.
A String containing a fully qualified type name.