Properties
Methods
Create
#Create a new snap-space from custom elements.
Parameters:
| elements (IEnumerable<ISnapElement>) | Snapping elements. |
Returns: Snap space.
Create
#public static SnapSpace Create(IEnumerable<SnapNumeric> x, IEnumerable<SnapNumeric> y, IEnumerable<ISnapElement> elements)
Create a snap space from multiple x and y snapping rules.
Parameters:
| x (IEnumerable<SnapNumeric>) | Optional X snapping rules. |
| y (IEnumerable<SnapNumeric>) | Optional Y snapping rules. |
| elements (IEnumerable<ISnapElement>) | Snapping elements. |
Create
#Create a snap space from multiple x and y snapping rules.
Parameters:
| x (IEnumerable<SnapNumeric>) | Optional X snapping rules. |
| y (IEnumerable<SnapNumeric>) | Optional Y snapping rules. |
Create
#Create a new snap-space from custom elements.
Parameters:
| elements (params ISnapElement[]) | Snapping elements. |
Returns: Snap space.
Create
#Create a snap space from x and y snapping rules.
Parameters:
| x (SnapNumeric = null) | Optional X snapping rule. |
| y (SnapNumeric = null) | Optional Y snapping rule. |
CreateOrthogonal
#Create a snapping space for the vertices of a square grid.
Snap
#Snap a coordinate to this space.
Parameters:
| x (double) | X-coordinate. |
| y (double) | Y-coordinate. |
| cutoff (double) | Custom distance cutoff. The cutoff and the radius combine to limit snapping. |
| xʹ (out double) | Snapped x-coordinate. If no snapping took place then xPrime will equal x. |
| yʹ (out double) | Snapped y-coordinate. If no snapping took place then yPrime will equal y. |
| description (out string) | May contain a textual descriptor for the specific snapping element involved. |
Returns: True when the coordinate was snapped successfully.
Snap
#Snap a coordinate to this space.
Parameters:
| x (double) | X-coordinate. |
| y (double) | Y-coordinate. |
| xʹ (out double) | Snapped x-coordinate. If no snapping took place then xPrime will equal x. |
| yʹ (out double) | Snapped y-coordinate. If no snapping took place then yPrime will equal y. |
| description (out string) | May contain a textual descriptor for the specific snapping element involved. |
Returns: True when the coordinate was snapped successfully.