API Methods

The following pages describe common vector operations which are provided in the API as well as some generic use cases. One fact to keep in mind when using API methods is, that all methods mutate the vector the method is called on (unless explicitly stated it doesn't). Therefore cloning vectors will happen regularly.

Most examples stay in 2D (on the xz-axes), but remember that they're exactly the same in 3D. It's just easier to explain and understand (and visualize on a monitor) in only 2 dimensions.

Last updated