|
|
constexpr | point2 (point2 const &) noexcept=default |
| |
|
constexpr | point2 (point2 &&) noexcept=default |
| |
|
constexpr point2 & | operator= (point2 const &) noexcept=default |
| |
|
constexpr point2 & | operator= (point2 &&) noexcept=default |
| |
| constexpr | operator array_type () const noexcept |
| | Convert a point to its array_type-nummeric_array.
|
| |
| constexpr | point2 (array_type const &other) noexcept |
| | Construct a point from a array_type-simd.
|
| |
| constexpr | point2 () noexcept |
| | Construct a point at the origin of the coordinate system.
|
| |
| constexpr | point2 (float x, float y) 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 | x () const noexcept |
| | Access the x element from the point.
|
| |
| constexpr float | y () const noexcept |
| | Access the y element from the point.
|
| |
|
constexpr point2 & | operator+= (vector2 const &rhs) noexcept |
| |
|
constexpr point2 & | operator-= (vector2 const &rhs) noexcept |
| |
| constexpr bool | holds_invariant () const noexcept |
| | Check if the point is valid.
|
| |
|
| constexpr friend point2 | operator+ (point2 const &lhs, vector2 const &rhs) noexcept |
| | Move a point along a vector.
|
| |
| constexpr friend point2 | operator+ (vector2 const &lhs, point2 const &rhs) noexcept |
| | Move a point along a vector.
|
| |
| constexpr friend point2 | operator- (point2 const &lhs, vector2 const &rhs) noexcept |
| | Move a point backward along the vector.
|
| |
| constexpr friend vector2 | operator- (point2 const &lhs, point2 const &rhs) noexcept |
| | Find the vector between two points.
|
| |
| constexpr friend bool | operator== (point2 const &lhs, point2 const &rhs) noexcept |
| | Compare if two points are equal.
|
| |
|
constexpr point2 | midpoint (point2 const &lhs, point2 const &rhs) noexcept |
| |
| constexpr point2 | reflect (point2 const &lhs, point2 const &rhs) noexcept |
| | Reflect a point.
|
| |
| constexpr point2 | min (point2 const &lhs, point2 const &rhs) noexcept |
| | Mix the two points and get the lowest value of each element.
|
| |
| constexpr point2 | max (point2 const &lhs, point2 const &rhs) noexcept |
| | Mix the two points and get the highest value of each element.
|
| |
| constexpr point2 | round (point2 const &rhs) noexcept |
| | Round the coordinates of a point toward nearest integer.
|
| |
| constexpr point2 | ceil (point2 const &rhs) noexcept |
| | Round the coordinates of a point toward the right-top.
|
| |
| constexpr point2 | floor (point2 const &rhs) noexcept |
| | Round the coordinates of a point toward the left-bottom.
|
| |
| constexpr point2 | ceil (point2 const &lhs, extent2 rhs) noexcept |
| | Round the coordinates of a point toward the top-right with the given granularity.
|
| |
| constexpr point2 | floor (point2 const &lhs, extent2 rhs) noexcept |
| | Round the coordinates of a point toward the left-bottom with the given granularity.
|
| |
|
float | distance (point2 const &lhs, point2 const &rhs) noexcept |
| |
|
std::string | to_string (point2 const &rhs) noexcept |
| |
|
std::ostream & | operator<< (std::ostream &lhs, point2 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.