|
|
constexpr | point3 (point3 const &) noexcept=default |
| |
|
constexpr | point3 (point3 &&) noexcept=default |
| |
|
constexpr point3 & | operator= (point3 const &) noexcept=default |
| |
|
constexpr point3 & | operator= (point3 &&) noexcept=default |
| |
| constexpr | point3 (point2 const &other) noexcept |
| | Construct a point from a lower dimension point.
|
| |
|
constexpr | operator point2 () const noexcept |
| |
| constexpr | point3 (point2 const &other, float z) noexcept |
| | Construct a point from a lower dimension point.
|
| |
| constexpr | operator array_type () const noexcept |
| | Convert a point to its array_type-nummeric_array.
|
| |
| constexpr | point3 (array_type const &other) noexcept |
| | Construct a point from a array_type-simd.
|
| |
| constexpr | point3 () noexcept |
| | Construct a point at the origin of the coordinate system.
|
| |
| constexpr | point3 (float x, float y, float z=0.0f) noexcept |
| | Construct a 3D point from x, y and z elements.
|
| |
| constexpr float & | x () noexcept |
| | Access the x element from the point.
|
| |
| constexpr float & | y () noexcept |
| | Access the y element from the point.
|
| |
| constexpr float & | z () noexcept |
| | Access the z element from the point.
|
| |
| constexpr float | x () const noexcept |
| | Access the x element from the point.
|
| |
| constexpr float | y () const noexcept |
| | Access the y element from the point.
|
| |
| constexpr float | z () const noexcept |
| | Access the z element from the point.
|
| |
|
constexpr point3 & | operator+= (vector3 const &rhs) noexcept |
| |
|
constexpr point3 & | operator-= (vector3 const &rhs) noexcept |
| |
| constexpr bool | holds_invariant () const noexcept |
| | Check if the point is valid.
|
| |
|
| constexpr friend point3 | operator+ (point3 const &lhs, vector3 const &rhs) noexcept |
| | Move a point along a vector.
|
| |
| constexpr friend point3 | operator+ (vector3 const &lhs, point3 const &rhs) noexcept |
| | Move a point along a vector.
|
| |
| constexpr friend point3 | operator- (point3 const &lhs, vector3 const &rhs) noexcept |
| | Move a point backward along the vector.
|
| |
| constexpr friend vector3 | operator- (point3 const &lhs, point3 const &rhs) noexcept |
| | Find the vector between two points.
|
| |
| constexpr friend bool | operator== (point3 const &lhs, point3 const &rhs) noexcept |
| | Compare if two points are equal.
|
| |
|
constexpr point3 | midpoint (point3 const &lhs, point3 const &rhs) noexcept |
| |
| constexpr point3 | reflect (point3 const &lhs, point3 const &rhs) noexcept |
| | Reflect a point.
|
| |
| constexpr point3 | min (point3 const &lhs, point3 const &rhs) noexcept |
| | Mix the two points and get the lowest value of each element.
|
| |
| constexpr point3 | max (point3 const &lhs, point3 const &rhs) noexcept |
| | Mix the two points and get the highest value of each element.
|
| |
| constexpr point3 | round (point3 const &rhs) noexcept |
| | Round the coordinates of a point toward nearest integer.
|
| |
| constexpr point3 | ceil (point3 const &rhs) noexcept |
| | Round the coordinates of a point toward the right-top.
|
| |
| constexpr point3 | floor (point3 const &rhs) noexcept |
| | Round the coordinates of a point toward the left-bottom.
|
| |
| constexpr point3 | ceil (point3 const &lhs, extent3 rhs) noexcept |
| | Round the coordinates of a point toward the top-right with the given granularity.
|
| |
| constexpr point3 | floor (point3 const &lhs, extent3 rhs) noexcept |
| | Round the coordinates of a point toward the left-bottom with the given granularity.
|
| |
|
float | distance (point3 const &lhs, point3 const &rhs) noexcept |
| |
|
std::string | to_string (point3 const &rhs) noexcept |
| |
|
std::ostream & | operator<< (std::ostream &lhs, point3 const &rhs) noexcept |
| |
A high-level geometric point Part of the high-level vec, point, mat and color types.
A point, for both 2D or 3D is internally represented as a 4D homogeneous vector. Which can be efficiently implemented as a __m128 SSE register.