Package georegression.geometry
Class UtilCircle2D_F64
java.lang.Object
georegression.geometry.UtilCircle2D_F64
Functions related to circles.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
circle
(Point2D_F64 x0, Point2D_F64 x1, Point2D_F64 x2, Circle2D_F64 circle) Given three points find the circle that intersects all three.static double
circleRadiusSq
(Point2D_F64 x0, Point2D_F64 x1, Point2D_F64 x2) Radius squares of the circle that passes through these three points.static double
evaluate
(double x, double y, Circle2D_F64 circle) Computes (x-x_c)**2 + (y-y_c)**2 - r.
-
Constructor Details
-
UtilCircle2D_F64
public UtilCircle2D_F64()
-
-
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
-