Represents a 4D point with unsigned integer coordinates.
More...
#include <UPoint4.hpp>
|
| unsigned | X |
| | X coordinate of the point.
|
| unsigned | Y |
| | Y coordinate of the point.
|
| unsigned | Z |
| | Z coordinate of the point.
|
| unsigned | W |
| | W coordinate of the point.
|
Represents a 4D point with unsigned integer coordinates.
◆ UPoint4() [1/2]
| Engine3DRadSpace.Math::UPoint4::UPoint4 |
( |
unsigned | x = 0, |
|
|
unsigned | y = 0, |
|
|
unsigned | z = 0, |
|
|
unsigned | w = 0 ) |
|
inlineexplicitconstexpr |
◆ UPoint4() [2/2]
| Engine3DRadSpace.Math::UPoint4::UPoint4 |
( |
std::initializer_list< unsigned > | lst | ) |
|
|
inlineexplicitconstexpr |
◆ operator*()
Multiplies this point by a scalar and returns the result.
- Parameters
-
| s | The scalar to multiply by. |
- Returns
- The resulting point after multiplication.
◆ operator*=()
Multiplies this point by a scalar in-place.
- Parameters
-
| s | The scalar to multiply by. |
- Returns
- A reference to this point after multiplication.
◆ operator+()
Adds another point to this point and returns the result.
- Parameters
-
- Returns
- The resulting point after addition.
◆ operator+=()
Adds another point to this point in-place.
- Parameters
-
- Returns
- A reference to this point after addition.
◆ operator-()
Subtracts another point from this point and returns the result.
- Parameters
-
- Returns
- The resulting point after subtraction.
◆ operator-=()
Subtracts another point from this point in-place.
- Parameters
-
- Returns
- A reference to this point after subtraction.
◆ operator/()
Divides this point by a scalar and returns the result.
- Parameters
-
| s | The scalar to divide by. |
- Returns
- The resulting point after division.
◆ operator/=()
Divides this point by a scalar in-place.
- Parameters
-
| s | The scalar to divide by. |
- Returns
- A reference to this point after division.
◆ operator<=>()
| auto Engine3DRadSpace.Math::UPoint4::operator<=> |
( |
const UPoint4 & | | ) |
const |
|
defaultnoexcept |
Compares this point with another point for equality.
- Returns
- default strong ordering
| unsigned Engine3DRadSpace.Math::UPoint4::W |
W coordinate of the point.
| unsigned Engine3DRadSpace.Math::UPoint4::X |
X coordinate of the point.
| unsigned Engine3DRadSpace.Math::UPoint4::Y |
Y coordinate of the point.
| unsigned Engine3DRadSpace.Math::UPoint4::Z |
Z coordinate of the point.
The documentation for this struct was generated from the following files: