|
Wildvine Engine
Referencia Doxygen del codigo propio de Wildvine Engine.
|
A 4D vector class. Más...
#include <Vector4.h>
Métodos públicos | |
| const float * | data () const |
| Returns a pointer to the quaternion's data. | |
| float | magnitude () const |
| Calculates the magnitude (length) of the vector. | |
| Vector4 | normalize () const |
| Normalizes the vector. | |
| Vector4 | operator* (float scalar) const |
| Multiplies this vector by a scalar. | |
| Vector4 | operator+ (const Vector4 &other) const |
| Adds another vector to this vector. | |
| Vector4 | operator- (const Vector4 &other) const |
| Subtracts another vector from this vector. | |
| Vector4 () | |
| Default constructor. | |
| Vector4 (float x, float y, float z, float w) | |
| Parameterized constructor. | |
Atributos públicos | |
| float | w |
| The w-coordinate of the vector. | |
| float | x |
| The x-coordinate of the vector. | |
| float | y |
| The y-coordinate of the vector. | |
| float | z |
| The z-coordinate of the vector. | |
This class represents a vector in 4-dimensional space and provides basic vector operations such as addition, subtraction, scalar multiplication, and normalization.
|
inline |
Initializes the vector to (0, 0, 0, 0).
Definición en la línea 57 del archivo Vector4.h.
Referenciado por normalize(), operator*(), operator+() y operator-().
|
inline |
|
inline |
|
inline |
Definición en la línea 106 del archivo Vector4.h.
Hace referencia a EU::sqrt(), w, x, y y z.
Referenciado por normalize().
|
inline |
|
inline |
| float EU::Vector4::w |
Definición en la línea 50 del archivo Vector4.h.
Referenciado por magnitude(), normalize(), operator*(), operator+() y operator-().
| float EU::Vector4::x |
Definición en la línea 47 del archivo Vector4.h.
Referenciado por data(), magnitude(), normalize(), operator*(), operator+() y operator-().
| float EU::Vector4::y |
Definición en la línea 48 del archivo Vector4.h.
Referenciado por magnitude(), normalize(), operator*(), operator+() y operator-().
| float EU::Vector4::z |
Definición en la línea 49 del archivo Vector4.h.
Referenciado por magnitude(), normalize(), operator*(), operator+() y operator-().