|
union { |
T x |
|
T r |
|
T u |
|
T s |
|
}; | |
|
union { |
T y |
|
T g |
|
T v |
|
T t |
|
}; | |
|
union { |
T z |
|
T b |
|
T p |
|
}; | |
|
union { |
T w |
|
T a |
|
T q |
|
}; | |
|
|
static bool | OCULAR_INTERNAL_Force = false |
|
This is equivalent to taking the acos of the dot product.
The returned angle is the acute angle, i.e the smallest of the two angles.
- Parameters
-
[in] | rhs | The second vector to calculate the angle with |
- Returns
- The angle, in radians, between the vectors
- Parameters
-
[in] | rhs | The second vector to calculate the distance with |
- Returns
- The distance between the two vectors
The dot product is a value equal to the magnitudes of the two vectors multiplied together and then multiplied by the cosine of the angle between them.
- Parameters
-
[in] | rhs | The second vector dot multiply with |
- Returns
- The dot product of the two vectors (in radians)
- Returns
- The length of the vector.
- Returns
- The magnitude (length) of the vector.
Returns the normalized form of this vector
Homegenizes the vector (divides all components by w so that w == 1)
Calculates the midpoint of the two provided points.
- Parameters
-
- Returns
- The midpoint vector
Normalizes the vector. When normalized, a vector maintains its direction but its magnitude is set to 1.0.
The documentation for this class was generated from the following files:
- C:/Projects/OcularEngine/OcularCore/include/Math/Matrix3x3.hpp
- C:/Projects/OcularEngine/OcularCore/include/Math/Vector4.hpp
- C:/Projects/OcularEngine/OcularCore/src/Math/Vector4.cpp