|
constexpr | Vector2F () noexcept |
|
constexpr | Vector2F (const value_type v) noexcept |
|
constexpr | Vector2F (const value_type x_, const value_type y_) noexcept |
|
constexpr | Vector2F (const Vector2F &o) noexcept=default |
|
constexpr | Vector2F (Vector2F &&o) noexcept=default |
|
constexpr Vector2F & | add (const value_type dx, const value_type dy) noexcept |
| this = this + {sx, sy}, returns this. More...
|
|
constexpr_cxx26 value_type | angle () const noexcept |
| Return the direction angle of this vector in radians. More...
|
|
constexpr_cxx26 value_type | angle (const Vector2F &o) const noexcept |
| Return the angle between two vectors in radians. More...
|
|
constexpr iterator | begin () noexcept |
|
constexpr const_iterator | cbegin () const noexcept |
|
constexpr value_type | cos_angle (const Vector2F &o) const noexcept |
| Return the cosines of the angle between two vectors. More...
|
|
constexpr value_type | cross (const Vector2F &o) const noexcept |
| Returns cross product of this vectors and the given one, i.e. More...
|
|
constexpr value_type | dist (const Vector2F &o) const noexcept |
| Return the distance between this vector and the given one. More...
|
|
constexpr value_type | dist_sq (const Vector2F &o) const noexcept |
| Return the squared distance between this vector and the given one. More...
|
|
constexpr value_type | dot (const Vector2F &o) const noexcept |
| Return the dot product of this vector and the given one. More...
|
|
constexpr iterator | get (iterator xy) const noexcept |
| xy = this, returns xy. More...
|
|
constexpr_cxx23 bool | intersects (const Vector2F &o) const noexcept |
|
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 Vector2F & | mul (const value_type sx, const value_type sy) noexcept |
| this = this * {sx, sy}, returns this. More...
|
|
constexpr Vector2F | normal_ccw () const noexcept |
| Return the counter-clock-wise (CCW) normal of this vector, i.e. More...
|
|
constexpr Vector2F & | normalize () noexcept |
| Normalize this vector in place, returns *this. More...
|
|
| operator const_pointer () const noexcept |
|
| operator pointer () noexcept |
|
constexpr Vector2F & | operator*= (const value_type s) noexcept |
| Scale this vector with given scale factor. More...
|
|
constexpr Vector2F & | operator+= (const Vector2F &rhs) noexcept |
| this = this + rhs, returns this. More...
|
|
constexpr Vector2F & | operator-= (const Vector2F &rhs) noexcept |
| this = this - rhs, returns this. More...
|
|
constexpr Vector2F & | operator/= (const value_type s) noexcept |
| Divide this vector with given scale factor. More...
|
|
constexpr Vector2F & | operator= (const Vector2F &) noexcept=default |
|
constexpr Vector2F & | operator= (Vector2F &&) noexcept=default |
|
constexpr bool | operator== (const Vector2F &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 Vector2F & | rotate (const value_type radians) noexcept |
| Rotates this vector in place, returns *this. More...
|
|
constexpr_cxx26 Vector2F & | rotate (const value_type radians, const Vector2F &ctr) noexcept |
| Rotates this vector in place, returns *this. More...
|
|
constexpr Vector2F & | rotate (const value_type sin, const value_type cos) noexcept |
| Rotates this vector in place, returns *this. More...
|
|
constexpr Vector2F & | rotate (const value_type sin, const value_type cos, const Vector2F &ctr) noexcept |
| Rotates this vector in place, returns *this. More...
|
|
constexpr Vector2F & | scale (const value_type s) noexcept |
| this = this * s, returns this. More...
|
|
constexpr Vector2F & | set (const value_type vx, const value_type vy) noexcept |
| TODO constexpr bool operator<=>(const vec2f_t& rhs ) const noexcept { return ... }. More...
|
|
constexpr Vector2F & | 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_floating_point_v<
Value_type >, bool > = true>
class jau::math::Vector2F< Value_type, >
2D vector using two value_type components.
Definition at line 49 of file vec2f.hpp.