Class RMHitInfo

  • All Implemented Interfaces:
    RMArchiver.Archiving, java.lang.Cloneable

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

      Fields 
      Modifier and Type Field Description
      int _hitCount  
      int _index  
      double _r  
      double _s  
    • Constructor Summary

      Constructors 
      Constructor Description
      RMHitInfo​(int hitCount, double r, double s, int index)
      Creates a hit info record with given attributes.
    • Field Detail

      • _hitCount

        public int _hitCount
      • _r

        public double _r
      • _s

        public double _s
      • _index

        public int _index
    • Constructor Detail

      • RMHitInfo

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

      • 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).