Package com.ggalmazor.ltdownsampling
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 DoublePoint
centerBetween
(Point a, Point b) Utility method to compute the geometric center point of the segment linking the provideda
andb
pointsdouble
getX()
double
getY()
-
Method Details
-
getX
double getX()- Returns:
- the x horizontal (time) value of this point
-
getY
double getY()- Returns:
- the y vertical value of this point
-
centerBetween
Utility method to compute the geometric center point of the segment linking the provideda
andb
points- Parameters:
a
- the first point of the segmentb
- the second point of the segment- Returns:
- a
DoublePoint
in the geometric center between the two provided points
-