ISnapElement

References
public interface ISnapElement
Base interface for all snapping elements. Implementors: snapping elements should be immutable as results may get cached.

Properties

Projection

#
SnapProjection Projection { get; }
Gets the type of projection for this element.

Radius

#
double Radius { get; }
Gets the radius within which this element is active.

Methods

Project

#
bool Project(double x, double y, bool limitToRadius, out double xʹ, out double yʹ, out string description)
Project a coordinate pair onto this element.
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.
True if projection was successful.