Class RawPoint
java.lang.Object
org.ampere.base.util.RawPoint
- All Implemented Interfaces:
PACTEdef
-
Field Summary
Fields inherited from interface org.ampere.base.util.PACTEdef
AMBIGUOUS, DOUBLE_TAG, FREQUENCY_NAME, FREQUENCY_TAG, TIME_NAME, TIME_TAG, UNKNOWN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublecompute the relative algebraic abscissa between this point and the input one.booleandoubleintgetIndex()doubleGet the maximal absolute vertical value of the current and the input pointsdoubledoublegetX()doublegetY()inthashCode()booleanCompare an input point with this pointbooleantoString()
-
Constructor Details
-
RawPoint
public RawPoint(double x, double y, int index) Creates a new instance of Point- Parameters:
x- abcissa valuey- ordinate valueindex- possible index
-
RawPoint
public RawPoint(double x, double y) -
RawPoint
-
-
Method Details
-
getX
public double getX() -
getY
public double getY() -
getIndex
public int getIndex() -
toString
-
getHorizontalVariation
-
getVerticalVariation
-
higherThan
Compare an input point with this point- Parameters:
q- input point- Returns:
- true if this point is higher than the input one
-
lowerThan
-
deltaH
compute the relative algebraic abscissa between this point and the input one.- Parameters:
q- input point to be compared- Returns:
- the computed algebraic abscissa
-
getMaxVerticalValue
Get the maximal absolute vertical value of the current and the input points- Parameters:
q- input points- Returns:
- the maximal absolute vertical value.
-
hashCode
-
equals
-