Catalano.Math.Geometry
Class ConvexityDefect
- java.lang.Object
-
- Catalano.Math.Geometry.ConvexityDefect
-
public class ConvexityDefect extends java.lang.ObjectConvexity defect.
-
-
Constructor Summary
Constructors Constructor and Description ConvexityDefect(IntPoint point, int start, int end, double depth)Initializes a new instance of the ConvexityDefect class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublegetDepth()Gets the depth of the defect (highest distance from the hull to any of the points in the contour).intgetEnd()Gets the ending index of the defect in the contour.IntPointgetPoint()Gets the most distant point from the hull characterizing the defect.intgetStart()Gets the starting index of the defect in the contour.voidsetDepth(double depth)Sets the depth of the defect (highest distance from the hull to any of the points in the contour).voidsetEnd(int end)Sets the ending index of the defect in the contour.voidsetPoint(IntPoint point)Sets the most distant point from the hull characterizing the defect.voidsetStart(int start)Sets the starting index of the defect in the contour.
-
-
-
Constructor Detail
-
ConvexityDefect
public ConvexityDefect(IntPoint point, int start, int end, double depth)
Initializes a new instance of the ConvexityDefect class.- Parameters:
point- IntPoint.start- Start.end- End.depth- Depth.
-
-
Method Detail
-
getDepth
public double getDepth()
Gets the depth of the defect (highest distance from the hull to any of the points in the contour).- Returns:
- Depth.
-
setDepth
public void setDepth(double depth)
Sets the depth of the defect (highest distance from the hull to any of the points in the contour).- Parameters:
depth- Depth.
-
getEnd
public int getEnd()
Gets the ending index of the defect in the contour.- Returns:
- End.
-
setEnd
public void setEnd(int end)
Sets the ending index of the defect in the contour.- Parameters:
end- End.
-
getPoint
public IntPoint getPoint()
Gets the most distant point from the hull characterizing the defect.- Returns:
- IntPoint.
-
setPoint
public void setPoint(IntPoint point)
Sets the most distant point from the hull characterizing the defect.- Parameters:
point- IntPoint.
-
getStart
public int getStart()
Gets the starting index of the defect in the contour.- Returns:
- Start.
-
setStart
public void setStart(int start)
Sets the starting index of the defect in the contour.- Parameters:
start- Start.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG