Coordinates
Introduction#
In Sandstone, coordinates and rotation are just an array of strings.
For example,
However, this isn't convenient to use. Therefore, Sandstone provides three helper functions to allow you to easily use numerical values as absolute, relative or local coordinates.
Syntax#
In order to create coordinates from numbers, you can use one of the following functions:
absoluteorabsfor absolute coordinatesrelativeorrelfor relative coordinates, using the tilde~notationlocalorlocfor local coordinates, using the caret^notation
You can use them in two ways: with a single number, or with several ones. A single number returns a single string. Several numbers will return an array of strings:
If you want to mix different kind of coordinates in the same command, you should use single numbers. If all your coordinates are of the same kind, multiple numbers are better.