ISnapElement

References
public interface ISnapElement : IComparable<ISnapElement>

Properties

Range

#
float Range { get; }
Gets the radius of influence of this snap element. This value is used for sorting, in that elements with bigger ranges are sorted earlier.

Methods

Snap

#
bool Snap(double x, double y, out double snapX, out double snapY)
Snap a point to this element.
x (double)Point x coordinate to snap.
y (double)Point y coordinate to snap.
snapX (out double)Snapped x coordinate.
snapY (out double)snapped y coordinate.
True if (x, y) got mapped to a different (x', y').