Interface Point
- All Known Implementing Classes:
DoublePoint
public interface Point
Defines the properties of points that can be processed by
LTThreeBuckets.
Users of this library must use DoublePoint or implement their own subtypes of
this interface.
-
Method Summary
Modifier and TypeMethodDescriptionstatic DoublePointcenterBetween(Point a, Point b) Computes the geometric center point of the segment linking the providedaandbpoints.doublex()Returns the x horizontal (time) value of this point.doubley()Returns the y vertical value of this point.
-
Method Details
-
centerBetween
Computes the geometric center point of the segment linking the providedaandbpoints.- Parameters:
a- the first point of the segmentb- the second point of the segment- Returns:
- a
DoublePointin the geometric center between the two provided points
-
x
double x()Returns the x horizontal (time) value of this point.- Returns:
- the x horizontal (time) value of this point
-
y
double y()Returns the y vertical value of this point.- Returns:
- the y vertical value of this point
-