Properties
Methods
Create
#Create a snap space from multiple x and y snapping rules.
public static SnapSpace Create()
x,
Optional X snapping rules.
y,
Optional Y snapping rules.
elements
Snapping elements.
Create
#Create a snap space from multiple x and y snapping rules.
CreateOrthogonal
#Create a snapping space for the vertices of a square grid.
CreateOrthogonal
#Create a snapping space for the vertices of a rectangular 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.