|
constexpr | Vector (std::array< std::reference_wrapper< T >, N > values) |
| Initializes a new Vector.
|
|
constexpr bool | operator== (const Vector &other) const noexcept |
| Compares two Vector for equality.
|
|
constexpr bool | operator!= (const Vector &other) const noexcept |
| Compares two Vector for inequality.
|
|
constexpr Impl< T > | operator+ (const Impl< T > &other) const noexcept |
| Adds two Vector.
|
|
constexpr Impl< T > | operator- (const Impl< T > &other) const noexcept |
| Subtracts two Vector.
|
|
constexpr Impl< T > | operator* (const Impl< T > &other) const noexcept |
| Multiplies two Vector.
|
|
constexpr Impl< T > | operator/ (const Impl< T > &other) const noexcept |
| Divides two Vector.
|
|
constexpr Impl< T > | operator* (const T &value) const noexcept |
| Multiplies a Vector by a value of type T.
|
|
constexpr Impl< T > | operator/ (const T &value) const noexcept |
| Divides a Vector by a value of type T.
|
|
constexpr Impl< T > & | operator+= (const Vector &other) noexcept |
| Adds the value of other to the current vector.
|
|
constexpr Impl< T > & | operator-= (const Vector &other) noexcept |
| Subtracts the value of other to the current vector.
|
|
constexpr Impl< T > & | operator*= (const Vector &other) noexcept |
| Multiplies the value of other to the current vector.
|
|
constexpr Impl< T > & | operator/= (const T &value) noexcept |
| Divides the value of other from the current vector.
|
|
constexpr Impl< T > | operator- () const noexcept |
| Negates all components of the current Vector.
|
|
constexpr T | norm () const noexcept |
| Computes the norm of the Vector. (||v|| = sqrt(v1^2 + v2^2 + ... + vn^2))
|
|
constexpr Impl< T > | normalized () const noexcept |
| Gets the normalized Vector. (v / ||v||)
|
|
constexpr T | dot (const Impl< T > &other) const noexcept |
| Computes the dot product between the current Vector and other .
|
|