|
|
PixelBullet
0.0.1
A C++ game engine
|
Public Member Functions | |
| AVector3 () noexcept | |
| Default constructor: initializes coordinates to zero. | |
| AVector3 (T x, T y, T z) noexcept | |
| Parameterized constructor. | |
| AVector3 (const AVector3 &other) noexcept | |
| Copy constructor. | |
| AVector3 (AVector3 &&other) noexcept | |
| Move constructor. | |
| AVector3 & | operator= (const AVector3 &other) noexcept |
| Copy assignment operator. | |
| AVector3 & | operator= (AVector3 &&other) noexcept |
| Move assignment operator. | |
| AVector3 | operator+ (const AVector3 &other) const noexcept |
| Addition operator. | |
| AVector3 & | operator+= (const AVector3 &other) noexcept |
| Compound addition. | |
| AVector3 | operator- (const AVector3 &other) const noexcept |
| Subtraction operator. | |
| AVector3 & | operator-= (const AVector3 &other) noexcept |
| Compound subtraction. | |
| AVector3 | operator- () const noexcept |
| Unary negation. | |
| AVector3 | operator* (T scalar) const noexcept |
| Scalar multiplication. | |
| AVector3 & | operator*= (T scalar) noexcept |
| Compound scalar multiplication. | |
| AVector3 | operator/ (T scalar) const noexcept |
| Scalar division. | |
| AVector3 & | operator/= (T scalar) noexcept |
| Compound scalar division. | |
| bool | operator== (const AVector3 &other) const noexcept |
| Equality operators. | |
| bool | operator!= (const AVector3 &other) const noexcept |
| T | GetX () const noexcept |
| Getters. | |
| T | GetY () const noexcept |
| T | GetZ () const noexcept |
| void | SetX (T x) noexcept |
| Setters. | |
| void | SetY (T y) noexcept |
| void | SetZ (T z) noexcept |
| T | Dot (const AVector3 &other) const noexcept |
| Additional operations: | |
| AVector3 | Cross (const AVector3 &other) const noexcept |
| Cross product. | |
| T | Length () const noexcept |
| Returns the vector's magnitude. | |
| AVector3 | Normalized () const noexcept |
| Returns a normalized (unit-length) copy of the vector. | |
|
inlinenoexcept |
Default constructor: initializes coordinates to zero.
|
inlinenoexcept |
Parameterized constructor.
|
inlinenoexcept |
Copy constructor.
|
inlinenoexcept |
Move constructor.
|
inlinenoexcept |
Cross product.
|
inlinenoexcept |
Additional operations:
Dot product.
|
inlinenoexcept |
Getters.
|
inlinenoexcept |
Returns the vector's magnitude.
|
inlinenoexcept |
Returns a normalized (unit-length) copy of the vector.
Return zero vector if length is zero.
|
inlinenoexcept |
Scalar multiplication.
|
inlinenoexcept |
Compound scalar multiplication.
|
inlinenoexcept |
Addition operator.
|
inlinenoexcept |
Compound addition.
|
inlinenoexcept |
Unary negation.
|
inlinenoexcept |
Subtraction operator.
|
inlinenoexcept |
Compound subtraction.
|
inlinenoexcept |
Scalar division.
|
inlinenoexcept |
Compound scalar division.
|
inlinenoexcept |
Move assignment operator.
|
inlinenoexcept |
Copy assignment operator.
|
inlinenoexcept |
Equality operators.
|
inlinenoexcept |
Setters.