Class RMHitInfo
java.lang.Object
com.inductiveautomation.rm.base.RMListenerList
com.inductiveautomation.rm.base.RMObject
com.inductiveautomation.rm.graphics.RMHitInfo
- All Implemented Interfaces:
RMPropertyChanger
,Cloneable
This class encapsulates simple hit information of a given curve or line against another curve or line.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRMHitInfo
(int hitCount, double r, double s, int index) Creates a hit info record with given attributes. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the numer of intersections associated with the given geometries.int
getIndex()
Returns the index of hit segment (for paths).double
getR()
Returns the parametric location (from 0-1) of hit on receiving geometry.double
getS()
Returns the parametric location (from 0-1) of hit on secondary geometry.Methods inherited from class com.inductiveautomation.rm.base.RMObject
addPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange, toString
Methods inherited from class com.inductiveautomation.rm.base.RMListenerList
addListener, clone, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
-
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).
-