Package georegression.geometry
Class UtilPoint2D_I32
java.lang.Object
georegression.geometry.UtilPoint2D_I32
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
distance
(int x0, int y0, int x1, int y1) static double
distance
(Point2D_I32 a, Point2D_I32 b) static int
distanceSq
(int x0, int y0, int x1, int y1) static int
distanceSq
(Point2D_I32 a, Point2D_I32 b) static Point2D_F32
mean
(List<Point2D_I32> list, @Nullable Point2D_F32 mean) Finds the point which has the mean location of all the points in the list.static Point2D_F64
mean
(List<Point2D_I32> list, @Nullable Point2D_F64 mean) Finds the point which has the mean location of all the points in the list.static Point2D_I32
mean
(List<Point2D_I32> list, @Nullable Point2D_I32 mean) Finds the point which has the mean location of all the points in the list.
-
Constructor Details
-
UtilPoint2D_I32
public UtilPoint2D_I32()
-
-
Method Details
-
distance
-
distanceSq
-
distance
public static double distance(int x0, int y0, int x1, int y1) -
distanceSq
public static int distanceSq(int x0, int y0, int x1, int y1) -
mean
Finds the point which has the mean location of all the points in the list. This is also known as the centroid.- Parameters:
list
- List of pointsmean
- Storage for mean point. If null then a new instance will be declared- Returns:
- The found mean
-
mean
Finds the point which has the mean location of all the points in the list. This is also known as the centroid.- Parameters:
list
- List of pointsmean
- Storage for mean point. If null then a new instance will be declared- Returns:
- The found mean
-
mean
Finds the point which has the mean location of all the points in the list. This is also known as the centroid.- Parameters:
list
- List of pointsmean
- Storage for mean point. If null then a new instance will be declared- Returns:
- The found mean
-