Package com.reportmill.graphics
Class RMHitInfo
java.lang.Object
com.reportmill.base.RMObject
com.reportmill.graphics.RMHitInfo
- All Implemented Interfaces:
RMArchiver.Archiving
,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.reportmill.base.RMObject
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
-
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).
-