Class UtilPoint4D_F32

java.lang.Object
georegression.geometry.UtilPoint4D_F32

@Generated("georegression.geometry.UtilPoint4D_F64") public class UtilPoint4D_F32 extends Object
  • Constructor Details

    • UtilPoint4D_F32

      public UtilPoint4D_F32()
  • Method Details

    • isInfiniteH

      public static boolean isInfiniteH(Point4D_F32 p, float tol)
      Checks to see if the homogenous 3D point lies on the plane at infinity
      Parameters:
      p - (Input) Homogenous point
      tol - (Input) tolerance. Try EPS
      Returns:
      true if on plane at infinity
    • randomN

      public static List<Point4D_F32> randomN(Point4D_F32 center, float stdev, int num, Random rand)
      Normally distributed random point with the mean (center) specified and each axis having the same standard deviation.
      Parameters:
      center -
      stdev -
      num -
      rand -
      Returns:
    • randomN

      public static List<Point4D_F32> randomN(Point3D_F32 center, float w, float stdev, int num, Random rand)
      Normally distributed homogenous 3D point. w is fixed
    • random

      public static List<Point4D_F32> random(float min, float max, int num, Random rand)
    • h_to_e

      public static Point3D_F32 h_to_e(Point4D_F32 p)
      Converts a point from homogenous coordinates into Euclidean
      Parameters:
      p - 3D point in homogenous coordinates
      Returns:
      3D point
    • h_to_e

      public static void h_to_e(Point4D_F32 p, Point3D_F32 out)