|
union { |
T x |
|
T u |
|
T s |
|
}; | |
|
union { |
T y |
|
T v |
|
T t |
|
}; | |
|
|
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
Normalizes the vector. When normalized, a vector maintains its direction but its magnitude is set to 1.0.
- Note
- This method modifies the internal data stored in the vector. See getNormalized if this is not desired.
The documentation for this class was generated from the following files:
- C:/Projects/OcularEngine/OcularCore/include/Math/Vector2.hpp
- C:/Projects/OcularEngine/OcularCore/src/Math/Vector2.cpp