Represents a 3D vector with x, y, and z components. This class provides basic vector operations such as addition, subtraction, multiplication, division, normalization, and length calculation.
More...
#include <vector3.h>
Represents a 3D vector with x, y, and z components. This class provides basic vector operations such as addition, subtraction, multiplication, division, normalization, and length calculation.
◆ Vector3() [1/2]
◆ Vector3() [2/2]
| Vector3::Vector3 |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z |
|
) |
| |
◆ equals()
| bool Vector3::equals |
( |
const Vector3 & |
other | ) |
const |
|
noexcept |
Checks if this vector is equal to another vector.
- Parameters
-
| other | The other vector to compare with. |
- Returns
- true if the vectors are equal, false otherwise.
◆ length()
| float Vector3::length |
( |
| ) |
const |
|
noexcept |
Calculates the length (magnitude) of the vector.
- Returns
- The length of the vector as a float.
◆ normalize()
| void Vector3::normalize |
( |
| ) |
|
|
noexcept |
Normalizes the vector to have a length of 1.
- Returns
- void
◆ operator*() [1/2]
◆ operator*() [2/2]
| Vector3 Vector3::operator* |
( |
float |
value | ) |
const |
|
noexcept |
◆ operator*=() [1/2]
◆ operator*=() [2/2]
| Vector3 & Vector3::operator*= |
( |
float |
value | ) |
|
|
noexcept |
◆ operator+()
◆ operator+=()
◆ operator-()
◆ operator-=()
◆ operator/() [1/2]
◆ operator/() [2/2]
| Vector3 Vector3::operator/ |
( |
float |
value | ) |
const |
|
noexcept |
◆ operator/=() [1/2]
◆ operator/=() [2/2]
| Vector3 & Vector3::operator/= |
( |
float |
value | ) |
|
|
noexcept |
The documentation for this class was generated from the following file: