Package georegression.geometry
Class UtilPoint4D_F64
java.lang.Object
georegression.geometry.UtilPoint4D_F64
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Point3D_F64
Converts a point from homogenous coordinates into Euclideanstatic void
h_to_e
(Point4D_F64 p, Point3D_F64 out) static boolean
isInfiniteH
(Point4D_F64 p, double tol) Checks to see if the homogenous 3D point lies on the plane at infinitystatic List<Point4D_F64>
static List<Point4D_F64>
randomN
(Point3D_F64 center, double w, double stdev, int num, Random rand) Normally distributed homogenous 3D point.static List<Point4D_F64>
randomN
(Point4D_F64 center, double 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_F64
public UtilPoint4D_F64()
-
-
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_F64> randomN(Point3D_F64 center, double w, double 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
-