Extends CurveLocation
A HitResult object contains information about the results of a hit test. It is returned by item.hitTest(point) and project.hitTest(point).
Describes the type of the hit result. For example, if you hit a segment point, the type would be 'segment'.
If the HitResult has a hitResult.type of 'bounds', this property describes which corner of the bounding rectangle was hit.
The item that was hit.
If the HitResult has a type of 'stroke', this property gives more information about the exact position that was hit on the path.
If the HitResult has a type of 'stroke', 'segment', 'handle-in' or 'handle-out', this property refers to the Segment that was hit or that is closest to the hitResult.location on the curve.
The hit point.
The curve by which the location is defined.
The path this curve belongs to, if any.
The index of the curve within the path.curves list, if the curve is part of a Path item.
The length of the path from its beginning up to the location described by this object.
The length of the curve from its beginning up to the location described by this object.
The curve parameter, as used by various bezier curve calculations. It is value between 0 (beginning of the curve) and 1 (end of the curve).
The tangential vector to the curve at the given location.
The normal vector to the curve at the given location.
The distance from the queried point to the returned location.
Creates a new CurveLocation object.
Copyright © 2011 Jürg Lehni & Jonathan Puckey. All Rights Reserved.