#include <GREM/core/extents.hpp>
|
| constexpr | operator vec3 () const noexcept |
| | Convert this offset to a floating-point 3D vector.
|
| constexpr | operator dvec3 () const noexcept |
| | Convert this offset to a double-precision floating-point 3D vector.
|
| constexpr | operator ivec3 () const noexcept |
| | Convert this offset to an integer 3D vector.
|
| constexpr | operator u32vec3 () const noexcept |
| | Convert this offset to an unsigned integer 3D vector.
|
| constexpr bool | operator== (const Offset< 3 > &other) const =default |
| | Compare this offset to another for equality.
|
|
| static constexpr Offset< 3 > | from (i32vec3 v) noexcept |
| | Create an offset from a vector of integers.
|
| static Offset< 3 > | round (vec3 v) |
| | Create an offset from a vector of floating-point numbers, rounded to their nearest integer values before conversion.
|
| static Offset< 3 > | floor (vec3 v) |
| | Create an offset from a vector of floating-point numbers, rounded down to their floor integer values before conversion.
|
| static Offset< 3 > | ceil (vec3 v) |
| | Create an offset from a vector of floating-point numbers, rounded up to their ceiling integer values before conversion.
|
| static Offset< 3 > | trunc (vec3 v) |
| | Create an offset from a vector of floating-point numbers, rounded to their truncated integer values before conversion.
|
|
| int32_t | x |
| | Horizontal offset.
|
| int32_t | y |
| | Vertical offset.
|
| int32_t | z |
| | Depth offset.
|
◆ from()
|
|
inlinestaticnodiscardconstexprnoexcept |
Create an offset from a vector of integers.
- Parameters
-
- Returns
- the corresponding offset.
◆ round()
Create an offset from a vector of floating-point numbers, rounded to their nearest integer values before conversion.
- Parameters
-
- Returns
- the rounded offset.
◆ floor()
Create an offset from a vector of floating-point numbers, rounded down to their floor integer values before conversion.
- Parameters
-
- Returns
- the floor-rounded offset.
◆ ceil()
Create an offset from a vector of floating-point numbers, rounded up to their ceiling integer values before conversion.
- Parameters
-
- Returns
- the ceiling-rounded offset.
◆ trunc()
Create an offset from a vector of floating-point numbers, rounded to their truncated integer values before conversion.
- Parameters
-
- Returns
- the truncated offset.
◆ operator vec3()
Convert this offset to a floating-point 3D vector.
- Returns
- a 3D vector representing the offset.
◆ operator dvec3()
Convert this offset to a double-precision floating-point 3D vector.
- Returns
- a 3D vector representing the offset.
◆ operator ivec3()
Convert this offset to an integer 3D vector.
- Returns
- a 3D vector representing the offset.
◆ operator u32vec3()
Convert this offset to an unsigned integer 3D vector.
- Returns
- a 3D vector representing the offset.
◆ operator==()
|
|
nodiscardconstexprdefault |
Compare this offset to another for equality.
- Parameters
-
| other | the offset to compare this one to. |
- Returns
- true if the offsets are equal, false otherwise.
The documentation for this struct was generated from the following file: