|
Sen API
Sen Libraries
|
Handles all mathematical ops involving 3D Vectors. More...
#include <vec3.h>
Public Member Functions | |
| Vec3 () noexcept | |
| Vec3 (T x, T y, T z) noexcept | |
| ~Vec3 ()=default | |
| T * | ptr () noexcept |
| const T * | ptr () const noexcept |
| void | set (T x, T y, T z) noexcept |
| void | setX (T x) noexcept |
| void | setY (T y) noexcept |
| void | setZ (T z) noexcept |
| void | set (const Vec3 &rhs) noexcept |
| T | getX () const noexcept |
| T | getY () const noexcept |
| T | getZ () const noexcept |
| bool | operator== (const Vec3 &v) const noexcept |
| bool | operator!= (const Vec3 &v) const noexcept |
| bool | operator< (const Vec3 &v) const noexcept |
| T | operator* (const Vec3 &rhs) const noexcept |
| Point multiplication. | |
| Vec3 | operator^ (const Vec3 &rhs) const noexcept |
| Cross product. | |
| Vec3 | operator* (T rhs) const noexcept |
| Scalar multiplication. | |
| Vec3 & | operator*= (T rhs) noexcept |
| Unary scalar multiplication. | |
| Vec3 | operator/ (T rhs) const noexcept |
| Division by scalar. | |
| Vec3 & | operator/= (T rhs) noexcept |
| Unary division by scalar. | |
| Vec3 | operator+ (const Vec3 &rhs) const noexcept |
| Binary vector addition. | |
| Vec3 & | operator+= (const Vec3 &rhs) noexcept |
| Binary vector addition. | |
| Vec3 | operator- (const Vec3 &rhs) const noexcept |
| Binary vector subtraction. | |
| Vec3 & | operator-= (const Vec3 &rhs) noexcept |
| Binary vector subtraction. | |
| Vec3 | operator- () const noexcept |
| Negates the internal elements of the vector. | |
| T | length () const noexcept |
| T | length2 () const noexcept |
| T | normalize () noexcept |
| Normalizes the vector so that its length is unity. Returns the previous length of the vector. | |
Handles all mathematical ops involving 3D Vectors.
|
inlinenoexcept |
|
inlinenoexcept |
|
default |
|
inlinenoexcept |
|
inlinenodiscardnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Point multiplication.
|
inlinenoexcept |
Cross product.
|
inlinenoexcept |
Scalar multiplication.
|
inlinenoexcept |
Unary scalar multiplication.
|
inlinenoexcept |
Division by scalar.
|
inlinenoexcept |
Unary division by scalar.
|
inlinenoexcept |
Binary vector addition.
|
inlinenoexcept |
Binary vector addition.
|
inlinenoexcept |
Binary vector subtraction.
|
inlinenoexcept |
Binary vector subtraction.
|
inlinenoexcept |
Negates the internal elements of the vector.
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenoexcept |
Normalizes the vector so that its length is unity. Returns the previous length of the vector.