ISnapElement
Referencespublic interface ISnapElement
Base interface for all snapping elements. Implementors: snapping elements should be immutable as results may get cached.
Properties
Methods
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. |
| xʹ (out double) | Projected x coordinate. If the projection fails, xʹ will be equal to x. |
| yʹ (out double) | Projected y coordinate. If the projection fails, yʹ will be equal to y. |
| description (out string) | A meaningful descriptor may be returned here. |
Returns: True if projection was successful.