Table of Contents

Vector3

Vector3 also supports the same access methods as Vector2, with an additional z component.

Construction methods

Vector3 objects can be constructed by either:

If you need a unit Vector3, you can use the static Vector3::ZERO, Vector3::UNIT_X, and similar instead of creating new objects initialized to those values.

Utility functions

Note that the typical !=, ==, *= operators are all implemented for this class.