SnapElement

References
public abstract class SnapElement : ISnapElement
Abstract implementation of ISnapElement.

Constructors

SnapElement

#
Base class constructor.
protected SnapElement(
range
Range.
)

Properties

Range

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

Methods

CompareTo

#
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
public int CompareTo(
ISnapElement
other
An object to compare with this instance.
)
A value that indicates the relative order of the objects being compared. The return value has these meanings: Value Meaning Less than zero This instance precedes other in the sort order. Zero This instance occurs in the same position in the sort order as other. Greater than zero This instance follows other in the sort order.

Snap

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