Class UtilCircle2D_F32

java.lang.Object
georegression.geometry.UtilCircle2D_F32

@Generated("georegression.geometry.UtilCircle2D_F64") public class UtilCircle2D_F32 extends Object
Functions related to circles.
  • Constructor Details

    • UtilCircle2D_F32

      public UtilCircle2D_F32()
  • Method Details

    • evaluate

      public static float evaluate(float x, float y, Circle2D_F32 circle)
      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 point
      y - y-coordinate of a point
      circle - circle
      Returns:
      Result of the equation
    • circle

      public static boolean circle(Point2D_F32 x0, Point2D_F32 x1, Point2D_F32 x2, Circle2D_F32 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 - Point
      x1 - Point
      x2 - Point
      circle - (Output) found circle
      Returns:
      true if a circle was found or false if not
    • circleRadiusSq

      public static float circleRadiusSq(Point2D_F32 x0, Point2D_F32 x1, Point2D_F32 x2)
      Radius squares of the circle that passes through these three points.
      Parameters:
      x0 - Point
      x1 - Point
      x2 - Point
      Returns:
      Radius squares of circle or NaN if colinear