Class UtilCircle2D_F64

java.lang.Object
georegression.geometry.UtilCircle2D_F64

public class UtilCircle2D_F64 extends Object
Functions related to circles.
  • Constructor Details

    • UtilCircle2D_F64

      public UtilCircle2D_F64()
  • Method Details

    • evaluate

      public static double evaluate(double x, double y, Circle2D_F64 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_F64 x0, Point2D_F64 x1, Point2D_F64 x2, Circle2D_F64 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 double circleRadiusSq(Point2D_F64 x0, Point2D_F64 x1, Point2D_F64 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