Class RMHitInfo

java.lang.Object
com.reportmill.base.RMObject
com.reportmill.graphics.RMHitInfo
All Implemented Interfaces:
RMArchiver.Archiving, Cloneable

public class RMHitInfo extends RMObject
This class encapsulates simple hit information of a given curve or line against another curve or line.
  • Field Details

    • _hitCount

      public int _hitCount
    • _r

      public double _r
    • _s

      public double _s
    • _index

      public int _index
  • Constructor Details

    • RMHitInfo

      public RMHitInfo(int hitCount, double r, double s, int index)
      Creates a hit info record with given attributes.
  • Method Details

    • getHitCount

      public int getHitCount()
      Returns the numer of intersections associated with the given geometries.
    • getR

      public double getR()
      Returns the parametric location (from 0-1) of hit on receiving geometry.
    • getS

      public double getS()
      Returns the parametric location (from 0-1) of hit on secondary geometry.
    • getIndex

      public int getIndex()
      Returns the index of hit segment (for paths).