georegression.geometry
Class UtilPoint2D_I32
- java.lang.Object
-
- georegression.geometry.UtilPoint2D_I32
-
public class UtilPoint2D_I32 extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description UtilPoint2D_I32()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static doubledistance(int x0, int y0, int x1, int y1)static doubledistance(Point2D_I32 a, Point2D_I32 b)static intdistanceSq(int x0, int y0, int x1, int y1)static intdistanceSq(Point2D_I32 a, Point2D_I32 b)static Point2D_I32mean(java.util.List<Point2D_I32> list, Point2D_I32 mean)Finds the point which has the mean location of all the points in the list.
-
-
-
Method Detail
-
distance
public static double distance(Point2D_I32 a, Point2D_I32 b)
-
distanceSq
public static int distanceSq(Point2D_I32 a, Point2D_I32 b)
-
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
public static Point2D_I32 mean(java.util.List<Point2D_I32> list, Point2D_I32 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
-
-
DataMelt 3.0 © DataMelt by jWork.ORG