SnapLineBundle
Implements ISnapElement for an infinite collection of repeating lines.
Constructors
SnapLineBundle
#Create a new snap line.
Parameters:
| line (LinearSegment) | Line geometry. |
| infinite (bool) | True if line ought to be considered as infinite. |
| spacing (double) | Spacing between adjacent lines in the bundle. |
| radius (double) | Snapping radius. |
Properties
Methods
DistanceTo
#Compute the distance from a coordinate to this element.
Project
#Project
#Project a coordinate pair onto this element.
Parameters:
| x (double) | X coordinate to project. |
| y (double) | Y coordinate to project. |
| limitToRadius (bool) | If true, coordinates will not be projected if the projection distance would exceed the radius. |
| xPrime (out double) | Projected x coordinate. If the projection fails, xPrime will be equal to x. |
| yPrime (out double) | Projected y coordinate. If the projection fails, yPrime will be equal to y. |
Returns: True if projection was successful.