georegression.geometry
Class UtilPoint3D_F64
- java.lang.Object
-
- georegression.geometry.UtilPoint3D_F64
-
public class UtilPoint3D_F64 extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description UtilPoint3D_F64()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidboundingBox(java.util.List<Point3D_F64> points, Box3D_F64 bounding)Finds the minimal volumeBox3D_F64which contains all the points.static java.util.List<Point3D_F64>copy(java.util.List<Point3D_F64> pts)static doubledistance(double x0, double y0, double z0, double x1, double y1, double z1)Euclidean distance between the two specified pointsstatic doubledistanceSq(double x0, double y0, double z0, double x1, double y1, double z1)Euclidean distance squared between the two specified pointsstatic Point3D_F64mean(java.util.List<Point3D_F64> points, int num, Point3D_F64 mean)Computes the mean of the list of points up to element num.static Point3D_F64mean(java.util.List<Point3D_F64> points, Point3D_F64 mean)Computes the mean of the list of points.static voidnoiseNormal(java.util.List<Point3D_F64> pts, double sigma, java.util.Random rand)static doublenorm(double x, double y, double z)static java.util.List<Point3D_F64>random(double min, double max, int num, java.util.Random rand)
-
-
-
Method Detail
-
distance
public static double distance(double x0, double y0, double z0, double x1, double y1, double z1)Euclidean distance between the two specified points- Parameters:
x0- x-axis on Point 0y0- y-axis on Point 0z0- z-axis on Point 0x1- x-axis on Point 1y1- y-axis on Point 1z1- z-axis on Point 1- Returns:
- Euclidean distance
-
distanceSq
public static double distanceSq(double x0, double y0, double z0, double x1, double y1, double z1)Euclidean distance squared between the two specified points- Parameters:
x0- x-axis on Point 0y0- y-axis on Point 0z0- z-axis on Point 0x1- x-axis on Point 1y1- y-axis on Point 1z1- z-axis on Point 1- Returns:
- Euclidean distance squared
-
norm
public static double norm(double x, double y, double z)
-
copy
public static java.util.List<Point3D_F64> copy(java.util.List<Point3D_F64> pts)
-
noiseNormal
public static void noiseNormal(java.util.List<Point3D_F64> pts, double sigma, java.util.Random rand)
-
random
public static java.util.List<Point3D_F64> random(double min, double max, int num, java.util.Random rand)
-
mean
public static Point3D_F64 mean(java.util.List<Point3D_F64> points, Point3D_F64 mean)
Computes the mean of the list of points.- Parameters:
points- List of pointsmean- (Optional) storage for the mean. Can be null- Returns:
- Mean
-
mean
public static Point3D_F64 mean(java.util.List<Point3D_F64> points, int num, Point3D_F64 mean)
Computes the mean of the list of points up to element num.- Parameters:
points- List of pointsnum- use points up to num, exclusive.mean- (Optional) storage for the mean. Can be null- Returns:
- Mean
-
boundingBox
public static void boundingBox(java.util.List<Point3D_F64> points, Box3D_F64 bounding)
Finds the minimal volumeBox3D_F64which contains all the points.- Parameters:
points- Input: List of points.bounding- Output: Bounding box
-
-
DataMelt 3.0 © DataMelt by jWork.ORG