Documentation of 'Catalano.Math.Geometry.ConvexityDefect' Java class
ConvexityDefect
Catalano.Math.Geometry

Class ConvexityDefect



  • public class ConvexityDefect
    extends java.lang.Object
    Convexity 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
      double getDepth()
      Gets the depth of the defect (highest distance from the hull to any of the points in the contour).
      int getEnd()
      Gets the ending index of the defect in the contour.
      IntPoint getPoint()
      Gets the most distant point from the hull characterizing the defect.
      int getStart()
      Gets the starting index of the defect in the contour.
      void setDepth(double depth)
      Sets the depth of the defect (highest distance from the hull to any of the points in the contour).
      void setEnd(int end)
      Sets the ending index of the defect in the contour.
      void setPoint(IntPoint point)
      Sets the most distant point from the hull characterizing the defect.
      void setStart(int start)
      Sets the starting index of the defect in the contour.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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

Ads help maintain this website.