Class RawPoint

java.lang.Object
org.ampere.base.util.RawPoint
All Implemented Interfaces:
PACTEdef

public class RawPoint extends Object implements PACTEdef
represent a point using floating point coordinates (double) in a figure or in a signal. Useful to return a RawPoint value.
Author:
Herve Morel
  • Constructor Details

    • RawPoint

      public RawPoint(double x, double y, int index)
      Creates a new instance of Point
      Parameters:
      x - abcissa value
      y - ordinate value
      index - possible index
    • RawPoint

      public RawPoint(double x, double y)
    • RawPoint

      public RawPoint(RawPoint source)
  • Method Details

    • getX

      public double getX()
    • getY

      public double getY()
    • getIndex

      public int getIndex()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getHorizontalVariation

      public double getHorizontalVariation(RawPoint q)
    • getVerticalVariation

      public double getVerticalVariation(RawPoint q)
    • higherThan

      public boolean higherThan(RawPoint q)
      Compare an input point with this point
      Parameters:
      q - input point
      Returns:
      true if this point is higher than the input one
    • lowerThan

      public boolean lowerThan(RawPoint q)
    • deltaH

      public double deltaH(RawPoint q)
      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

      public double getMaxVerticalValue(RawPoint q)
      Get the maximal absolute vertical value of the current and the input points
      Parameters:
      q - input points
      Returns:
      the maximal absolute vertical value.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object