georegression.geometry
Class UtilPoint3D_F32
- java.lang.Object
-
- georegression.geometry.UtilPoint3D_F32
-
public class UtilPoint3D_F32 extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description UtilPoint3D_F32()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidboundingBox(java.util.List<Point3D_F32> points, Box3D_F32 bounding)Finds the minimal volumeBox3D_F32which contains all the points.static java.util.List<Point3D_F32>copy(java.util.List<Point3D_F32> pts)static floatdistance(float x0, float y0, float z0, float x1, float y1, float z1)Euclidean distance between the two specified pointsstatic floatdistanceSq(float x0, float y0, float z0, float x1, float y1, float z1)Euclidean distance squared between the two specified pointsstatic Point3D_F32mean(java.util.List<Point3D_F32> points, int num, Point3D_F32 mean)Computes the mean of the list of points up to element num.static Point3D_F32mean(java.util.List<Point3D_F32> points, Point3D_F32 mean)Computes the mean of the list of points.static voidnoiseNormal(java.util.List<Point3D_F32> pts, float sigma, java.util.Random rand)static floatnorm(float x, float y, float z)static java.util.List<Point3D_F32>random(float min, float max, int num, java.util.Random rand)
-
-
-
Method Detail
-
distance
public static float distance(float x0, float y0, float z0, float x1, float y1, float 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 float distanceSq(float x0, float y0, float z0, float x1, float y1, float 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 float norm(float x, float y, float z)
-
copy
public static java.util.List<Point3D_F32> copy(java.util.List<Point3D_F32> pts)
-
noiseNormal
public static void noiseNormal(java.util.List<Point3D_F32> pts, float sigma, java.util.Random rand)
-
random
public static java.util.List<Point3D_F32> random(float min, float max, int num, java.util.Random rand)
-
mean
public static Point3D_F32 mean(java.util.List<Point3D_F32> points, Point3D_F32 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_F32 mean(java.util.List<Point3D_F32> points, int num, Point3D_F32 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_F32> points, Box3D_F32 bounding)
Finds the minimal volumeBox3D_F32which contains all the points.- Parameters:
points- Input: List of points.bounding- Output: Bounding box
-
-
DataMelt 3.0 © DataMelt by jWork.ORG