Catalano.Math.Geometry
Class PointsCloud
- java.lang.Object
-
- Catalano.Math.Geometry.PointsCloud
-
public final class PointsCloud extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classPointsCloud.FurthestPoint
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static java.util.List<IntPoint>FindQuadrilateralCorners(java.util.List<IntPoint> cloud)static java.util.List<IntPoint>GetBoundingRectangle(java.util.List<IntPoint> cloud)Get bounding rectangle of the specified list of points.static FloatPointGetCenterOfGravity(java.util.ArrayList<IntPoint> cloud)static PointsCloud.FurthestPointGetFurthestPoint(java.util.List<IntPoint> cloud, IntPoint referencePoint)static IntPointGetFurthestPointFromLine(java.util.ArrayList<IntPoint> cloud, IntPoint linePoint1, IntPoint linePoint2)static PointsCloud.FurthestPoint[]GetFurthestPointsFromLine(java.util.List<IntPoint> cloud, IntPoint linePoint1, IntPoint linePoint2)static floatgetQuadrilateralRelativeDistortionLimit()static voidsetQuadrilateralRelativeDistortionLimit(float value)static voidShift(java.util.ArrayList<IntPoint> cloud, IntPoint shift)Shift cloud by adding specified value to all points in the collection.
-
-
-
Method Detail
-
Shift
public static void Shift(java.util.ArrayList<IntPoint> cloud, IntPoint shift)
Shift cloud by adding specified value to all points in the collection.- Parameters:
cloud- Collection of points to shift their coordinates.shift- Point to shift by.
-
GetBoundingRectangle
public static java.util.List<IntPoint> GetBoundingRectangle(java.util.List<IntPoint> cloud)
Get bounding rectangle of the specified list of points.- Parameters:
cloud- Collection of points to get bounding rectangle for.- Returns:
- Bounding rectangle.
-
GetCenterOfGravity
public static FloatPoint GetCenterOfGravity(java.util.ArrayList<IntPoint> cloud)
-
GetFurthestPoint
public static PointsCloud.FurthestPoint GetFurthestPoint(java.util.List<IntPoint> cloud, IntPoint referencePoint)
-
GetFurthestPointsFromLine
public static PointsCloud.FurthestPoint[] GetFurthestPointsFromLine(java.util.List<IntPoint> cloud, IntPoint linePoint1, IntPoint linePoint2)
-
GetFurthestPointFromLine
public static IntPoint GetFurthestPointFromLine(java.util.ArrayList<IntPoint> cloud, IntPoint linePoint1, IntPoint linePoint2)
-
getQuadrilateralRelativeDistortionLimit
public static float getQuadrilateralRelativeDistortionLimit()
-
setQuadrilateralRelativeDistortionLimit
public static void setQuadrilateralRelativeDistortionLimit(float value)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG