|
Yasiu Math 1
Collection of mathematic functions that help create game mechanics and procedural tools
|
Structure reflecting vector of size 3, Templated Type. More...
#include <YasiuMathDataTypes.h>
Public Member Functions | |
| bool | operator== (const Vec3 &other) const |
| All elements must match. | |
| bool | operator!= (const Vec3 &other) const |
| OnlY 1 can be different. | |
| bool | operator> (const T value) const |
| Compare magnitudes. | |
| bool | operator< (const T value) const |
| Compare magnitudes. | |
| bool | operator> (const Vec3 &other) const |
| Compare magnitudes. | |
| bool | operator< (const Vec3 &other) const |
| Compare magnitudes. | |
| T | Dot (const Vec3 &other) const |
| Dot product of 2 vectors. | |
| Vec3 | Cross (const Vec3 &other) const |
| Cross product of 2 vectors. | |
| T | LengthSquared () const |
| Length^2. | |
| T | Length () const |
| Default Pythagoras Length. | |
| Vec3 | Abs () const |
| Vector with absolute values. | |
| T | Sum () const |
| Sum inner elements. | |
| T | AbsSum () const |
| Sum of absolute values of components. | |
| Vec3 | Normalize () const |
| Return copy of normalized vector. | |
| Vec3 & | NormalizeInPlace () |
| Normalize this vector. | |
| bool | IsNearly0 (const T EPS=YasiuMath::Constants::EPSILON) const |
| Check if vector has any element other than 0, uses YasiuMath::Constants::EPSILON. | |
Public Attributes | |
| T | X = 0 |
| T | Y = 0 |
| T | Z = 0 |
Structure reflecting vector of size 3, Templated Type.
Vector implements arithmetic operators ** Has dot and cross product functions.
| T YasiuMath::Types::Vec3< T >::X = 0 |
X
| T YasiuMath::Types::Vec3< T >::Y = 0 |
Y
| T YasiuMath::Types::Vec3< T >::Z = 0 |
Z