Package qupath.lib.geom
Interface Point
- All Known Implementing Classes:
- Point2
public interface Point
Simple interface defining a point.
 
Warning: This may change in the future (by being extended), so developers are advised not to subclass it...
- 
Method SummaryModifier and TypeMethodDescriptionintdim()Number of values used to represent this point.doubleCalculate the distance to another point, with the samedim().doubledistanceSq(Point p) Calculate the squared distance to another point, with the samedim().doubleget(int dim) Get the value of the ordinate for the specified dimension.
- 
Method Details- 
dimint dim()Number of values used to represent this point.For an x,y coordinate pair this should return 2. - Returns:
 
- 
getdouble get(int dim) Get the value of the ordinate for the specified dimension.- Parameters:
- dim-
- Returns:
 
- 
distanceSqCalculate the squared distance to another point, with the samedim().- Parameters:
- p-
- Returns:
- See Also:
 
- 
distanceCalculate the distance to another point, with the samedim().- Parameters:
- p-
- Returns:
- See Also:
 
 
-