Represents a 2D point with unsigned integer coordinates.
More...
#include <UPoint.hpp>
|
| unsigned | X |
| | X coordinate of the point.
|
| unsigned | Y |
| | Y coordinate of the point.
|
Represents a 2D point with unsigned integer coordinates.
◆ UPoint() [1/2]
| Engine3DRadSpace.Math::UPoint::UPoint |
( |
unsigned | x = 0, |
|
|
unsigned | y = 0 ) |
|
inlineexplicitconstexpr |
◆ UPoint() [2/2]
| Engine3DRadSpace.Math::UPoint::UPoint |
( |
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::UPoint::operator<=> |
( |
const UPoint & | | ) |
const |
|
defaultnoexcept |
Compares this point with another point for equality.
- Returns
- default strong ordering
| unsigned Engine3DRadSpace.Math::UPoint::X |
X coordinate of the point.
| unsigned Engine3DRadSpace.Math::UPoint::Y |
Y coordinate of the point.
The documentation for this struct was generated from the following files: