|
constexpr | Vector2I () noexcept |
|
constexpr | Vector2I (const value_type v) noexcept |
|
constexpr | Vector2I (const value_type x_, const value_type y_) noexcept |
|
constexpr | Vector2I (const Vector2I &o) noexcept=default |
|
constexpr | Vector2I (Vector2I &&o) noexcept=default |
|
constexpr Vector2I & | add (const value_type dx, const value_type dy) noexcept |
| this = this + {sx, sy}, returns this. More...
|
|
constexpr iterator | begin () noexcept |
|
constexpr const_iterator | cbegin () const noexcept |
|
constexpr iterator | get (iterator xy) const noexcept |
| xy = this, returns xy. More...
|
|
bool | intersects (const Vector2I &o) |
|
constexpr bool | is_zero () const noexcept |
|
constexpr value_type | length () const noexcept |
| Return the length of this vector, a.k.a the norm or magnitude More...
|
|
constexpr value_type | length_sq () const noexcept |
| Return the squared length of this vector, a.k.a the squared norm or squared magnitude More...
|
|
constexpr Vector2I & | mul (const value_type sx, const value_type sy) noexcept |
| this = this * {sx, sy}, returns this. More...
|
|
constexpr Vector2I & | normalize () noexcept |
| Normalize this vector in place, returns *this. More...
|
|
| operator const_pointer () const noexcept |
|
| operator pointer () noexcept |
|
constexpr Vector2I & | operator*= (const value_type s) noexcept |
| Scale this vector with given scale factor. More...
|
|
constexpr Vector2I & | operator+= (const Vector2I &rhs) noexcept |
| this = this + rhs, returns this. More...
|
|
constexpr Vector2I & | operator-= (const Vector2I &rhs) noexcept |
| this = this - rhs, returns this. More...
|
|
constexpr Vector2I & | operator/= (const value_type s) noexcept |
| Divide this vector with given scale factor. More...
|
|
constexpr Vector2I & | operator= (const Vector2I &) noexcept=default |
|
constexpr Vector2I & | operator= (Vector2I &&) noexcept=default |
|
constexpr bool | operator== (const Vector2I &rhs) const noexcept |
|
constexpr value_type | operator[] (size_t i) const noexcept |
| Returns read-only component. More...
|
|
constexpr reference | operator[] (size_t i) noexcept |
| Returns writeable reference to component. More...
|
|
constexpr_cxx26 void | rotate (const float_type radians, const Vector2I &ctr) |
|
void | rotate (const float_type sin, const float_type cos, const Vector2I &ctr) |
|
constexpr Vector2I & | scale (const value_type s) noexcept |
| this = this * s, returns this. More...
|
|
constexpr Vector2I & | set (const value_type vx, const value_type vy) noexcept |
| TODO constexpr bool operator<=>(const vec2i_t& rhs ) const noexcept { return ... }. More...
|
|
constexpr Vector2I & | set (const_iterator xy) noexcept |
| this = xy, returns this. More...
|
|
std::string | toString () const noexcept |
|
template<typename
Value_type, std::enable_if_t< std::is_integral_v<
Value_type >, bool > = true>
struct jau::math::Vector2I< Value_type, >
2D vector using two integer components.
Definition at line 49 of file vec2i.hpp.