Package org.tinfour.common
Interface ISamplePoint
-
- All Known Implementing Classes:
Vertex,VertexAdjustment,VertexMergerGroup
public interface ISamplePointDefines a sample point interface to be used for spatial data analysis.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublegetDistanceSq(double x, double y)Get the square of the distance to the specified coordinatesdoublegetX()Get the X coordinate of the sample pointdoublegetY()Get the Y coordinate of the sample pointdoublegetZ()Get the Z coordinate of the sample point
-
-
-
Method Detail
-
getX
double getX()
Get the X coordinate of the sample point- Returns:
- a valid floating-point value
-
getY
double getY()
Get the Y coordinate of the sample point- Returns:
- a valid floating-point value
-
getZ
double getZ()
Get the Z coordinate of the sample point- Returns:
- a valid floating point value
-
getDistanceSq
double getDistanceSq(double x, double y)Get the square of the distance to the specified coordinates- Parameters:
x- X coordinate for distance calculationy- Y coordinate for distance calculation- Returns:
- a positive floating-point value
-
-