Package georegression.geometry
Class UtilPoint4D_F32
java.lang.Object
georegression.geometry.UtilPoint4D_F32
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Point3D_F32
Converts a point from homogenous coordinates into Euclideanstatic void
h_to_e
(Point4D_F32 p, Point3D_F32 out) static boolean
isInfiniteH
(Point4D_F32 p, float tol) Checks to see if the homogenous 3D point lies on the plane at infinitystatic List<Point4D_F32>
static List<Point4D_F32>
randomN
(Point3D_F32 center, float w, float stdev, int num, Random rand) Normally distributed homogenous 3D point.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.
-
Constructor Details
-
UtilPoint4D_F32
public UtilPoint4D_F32()
-
-
Method Details
-
isInfiniteH
Checks to see if the homogenous 3D point lies on the plane at infinity- Parameters:
p
- (Input) Homogenous pointtol
- (Input) tolerance. Try EPS- Returns:
- true if on plane at infinity
-
randomN
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
-
h_to_e
Converts a point from homogenous coordinates into Euclidean- Parameters:
p
- 3D point in homogenous coordinates- Returns:
- 3D point
-
h_to_e
-