This shows you the differences between two versions of the page.
— |
3d_vector [2022/05/01 18:36] (current) max created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Vector3 ====== | ||
+ | |||
+ | Vector3 also supports the same access methods as [[2d_vector|Vector2]], | ||
+ | |||
+ | ==== Construction methods ==== | ||
+ | |||
+ | Vector3 objects can be constructed by either: | ||
+ | * Supplying the '' | ||
+ | * Supplying nothing, defaulting to a zero vector. | ||
+ | |||
+ | <note tip> | ||
+ | If you need a unit Vector3, you can use the static '' | ||
+ | </ | ||
+ | |||
+ | ==== Utility functions ==== | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | Note that the typical !=, ==, *= operators are all implemented for this class. | ||
+ | |||