|
3DRadSpace 0.1.0Alpha
3DRadSpace is a free, simple to use, rapid application development game engine.
|
Represents a 3D point with unsigned integer coordinates. More...
#include <UPoint3.hpp>
Public Member Functions | |
| UPoint3 (uint x, uint y, uint z) | |
| constexpr | UPoint3 (unsigned x=0, unsigned y=0, unsigned z=0) |
| constexpr | UPoint3 (std::initializer_list< unsigned > lst) |
| UPoint3 | operator+= (const UPoint3 &p) |
| Adds another point to this point in-place. | |
| UPoint3 | operator+ (const UPoint3 &p) const |
| Adds another point to this point and returns the result. | |
| UPoint3 | operator-= (const UPoint3 &p) |
| Subtracts another point from this point in-place. | |
| UPoint3 | operator- (const UPoint3 &p) const |
| Subtracts another point from this point and returns the result. | |
| UPoint3 | operator*= (float s) |
| Multiplies this point by a scalar in-place. | |
| UPoint3 | operator* (float s) const |
| Multiplies this point by a scalar and returns the result. | |
| UPoint3 | operator/= (float s) |
| Divides this point by a scalar in-place. | |
| UPoint3 | operator/ (float s) const |
| Divides this point by a scalar and returns the result. | |
| auto | operator<=> (const UPoint3 &) const noexcept=default |
| Compares this point with another point for equality. | |
Public Attributes | |
| uint | X |
| uint | Y |
| uint | Z |
| unsigned | X |
| X coordinate of the point. | |
| unsigned | Y |
| Y coordinate of the point. | |
| unsigned | Z |
| Z coordinate of the point. | |
Represents a 3D point with unsigned integer coordinates.
|
inline |
|
inlineexplicitconstexpr |
|
inlineexplicitconstexpr |
Multiplies this point by a scalar and returns the result.
| s | The scalar to multiply by. |
Multiplies this point by a scalar in-place.
| s | The scalar to multiply by. |
Adds another point to this point and returns the result.
| p | The point to add. |
Adds another point to this point in-place.
| p | The point to add. |
Subtracts another point from this point and returns the result.
| p | The point to subtract. |
Subtracts another point from this point in-place.
| p | The point to subtract. |
Divides this point by a scalar and returns the result.
| s | The scalar to divide by. |
Divides this point by a scalar in-place.
| s | The scalar to divide by. |
|
defaultnoexcept |
Compares this point with another point for equality.
| uint Engine3DRadSpace.Math.UPoint3.X |
| unsigned Engine3DRadSpace.Math.UPoint3.X |
X coordinate of the point.
| uint Engine3DRadSpace.Math.UPoint3.Y |
| unsigned Engine3DRadSpace.Math.UPoint3.Y |
Y coordinate of the point.
| uint Engine3DRadSpace.Math.UPoint3.Z |
| unsigned Engine3DRadSpace.Math.UPoint3.Z |
Z coordinate of the point.