SpinParser
1.0
|
Three-dimensional vector. More...
#include <Geometry.hpp>
Public Member Functions | |
Vec3 () | |
Construct a new Vec3 object with uninitialized values. | |
Vec3 (const T &xyz) | |
Construct a new Vec3 object and initialize all numbers with the same value. More... | |
Vec3 (const T &x, const T &y, const T &z) | |
Construct a new Vec3 object and initialize numbers. More... | |
T | norm () const |
Compute the Euclidean norm of a Vec3 object. More... | |
Vec3 & | normalize () |
Normalize the Vec3 object with respect to its Euclidean norm. More... | |
Public Attributes | |
T | x |
x Component. | |
T | y |
y Component. | |
T | z |
z Component. | |
Three-dimensional vector.
T | Underlying fundamental data type. |
|
inline |
Construct a new Vec3 object and initialize all numbers with the same value.
xyz | Value to initialize. |
|
inline |
Construct a new Vec3 object and initialize numbers.
x | Value to initialize x component. |
y | Value to initialize y component. |
z | Value to initialize z component. |
|
inline |
Compute the Euclidean norm of a Vec3 object.
|
inline |