|
constexpr | Vector4F () noexcept |
|
constexpr | Vector4F (const value_type v) noexcept |
|
constexpr | Vector4F (const value_type x_, const value_type y_, const value_type z_, const value_type w_) noexcept |
|
constexpr | Vector4F (const Vec3 &o3, const value_type w_) noexcept |
|
constexpr | Vector4F (const Vector4F &o) noexcept=default |
|
constexpr | Vector4F (const_iterator v) noexcept |
|
constexpr | Vector4F (std::initializer_list< value_type > v) noexcept |
|
constexpr | Vector4F (Vector4F &&o) noexcept=default |
|
constexpr Vector4F & | add (const value_type dx, const value_type dy, const value_type dz, const value_type dw) noexcept |
| this = this + {dx, dy, dz, dw}, returns this. More...
|
|
constexpr iterator | begin () noexcept |
|
constexpr const_iterator | cbegin () const noexcept |
|
constexpr value_type | dist (const Vector4F &o) const noexcept |
| Return the distance between this vector and the given one. More...
|
|
constexpr value_type | dist_sq (const Vector4F &o) const noexcept |
| Return the squared distance between this vector and the given one. More...
|
|
constexpr iterator | get (iterator xyzw) const noexcept |
| xyzw = this, returns xyzw. More...
|
|
constexpr Vec3 & | getVec3 (Vec3 &out) const noexcept |
| out = { this.x, this.y, this.z } dropping w, returns out. More...
|
|
constexpr_cxx23 bool | intersects (const Vector4F &o) const noexcept |
|
constexpr bool | is_zero () const noexcept |
|
constexpr value_type | length () const noexcept |
| Return the length of a vector, a.k.a the norm or magnitude More...
|
|
constexpr value_type | length_sq () const noexcept |
| Return the squared length of a vector, a.k.a the squared norm or squared magnitude More...
|
|
constexpr Vector4F & | mul (const value_type sx, const value_type sy, const value_type sz, const value_type sw) noexcept |
| this = this * {sx, sy, sz, sw}, returns this. More...
|
|
constexpr Vector4F & | normalize () noexcept |
| Normalize this vector in place. More...
|
|
| operator const_pointer () const noexcept |
|
| operator pointer () noexcept |
|
constexpr Vector4F & | operator*= (const value_type s) noexcept |
| Scale this vector with given scale factor. More...
|
|
constexpr Vector4F & | operator+= (const Vector4F &rhs) noexcept |
| this = this + rhs, returns this. More...
|
|
constexpr Vector4F & | operator-= (const Vector4F &rhs) noexcept |
| this = this - rhs, returns this. More...
|
|
constexpr Vector4F & | operator/= (const value_type s) noexcept |
| Divide this vector with given scale factor. More...
|
|
constexpr Vector4F & | operator= (const Vector4F &) noexcept=default |
|
constexpr Vector4F & | operator= (Vector4F &&) noexcept=default |
|
constexpr bool | operator== (const Vector4F &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 Vector4F & | scale (const value_type s) noexcept |
| this = this * s, returns this. More...
|
|
constexpr Vector4F & | set (const value_type vx, const value_type vy, const value_type vz, const value_type vw) noexcept |
|
constexpr Vector4F & | set (const Vec3f &o, const value_type w_) noexcept |
| TODO constexpr bool operator<=>(const vec4f_t& rhs ) const noexcept { return ... }. More...
|
|
constexpr Vector4F & | set (const_iterator xyzw) noexcept |
| this = xyzw, 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::Vector4F< Value_type, >
4D vector using four value_type components.
Definition at line 51 of file vec4f.hpp.