Package georegression.geometry
Class UtilCircle2D_F32
java.lang.Object
georegression.geometry.UtilCircle2D_F32
Functions related to circles.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
circle
(Point2D_F32 x0, Point2D_F32 x1, Point2D_F32 x2, Circle2D_F32 circle) Given three points find the circle that intersects all three.static float
circleRadiusSq
(Point2D_F32 x0, Point2D_F32 x1, Point2D_F32 x2) Radius squares of the circle that passes through these three points.static float
evaluate
(float x, float y, Circle2D_F32 circle) Computes (x-x_c)**2 + (y-y_c)**2 - r.
-
Constructor Details
-
UtilCircle2D_F32
public UtilCircle2D_F32()
-
-
Method Details
-
evaluate
Computes (x-x_c)**2 + (y-y_c)**2 - r. If (x,y) lies on the circle then it should be 0.- Parameters:
x
- x-coordinate of a pointy
- y-coordinate of a pointcircle
- circle- Returns:
- Result of the equation
-
circle
Given three points find the circle that intersects all three. If false is returned that means the points all lie along a line and there is no circle.- Parameters:
x0
- Pointx1
- Pointx2
- Pointcircle
- (Output) found circle- Returns:
- true if a circle was found or false if not
-
circleRadiusSq
Radius squares of the circle that passes through these three points.- Parameters:
x0
- Pointx1
- Pointx2
- Point- Returns:
- Radius squares of circle or NaN if colinear
-