#include <nCine/Primitives/Vector4.h>
template<class T>
Vector4 class
Four-component vector.
Public static variables
Public static functions
Constructors, destructors, conversion operators
- Vector4() constexpr noexcept
- Vector4(NoInitT) explicit noexcept
- Vector4(T s) explicit constexpr noexcept
- Vector4(T x, T y, T z, T w) constexpr noexcept
- Vector4(const Vector2<T>& other, T z, T w) constexpr noexcept
- Vector4(Vector2<T>&& other, T z, T w) constexpr noexcept
- Vector4(const Vector3<T>& other, T w) constexpr noexcept
- Vector4(Vector3<T>&& other, T w) constexpr noexcept
- Vector4(const Vector4& other) constexpr noexcept
- Vector4(Vector4&& other) constexpr noexcept
Public functions
- auto operator=(const Vector4& other) -> Vector4& noexcept
- auto operator=(Vector4&& other) -> Vector4& noexcept
- void Set(T x, T y, T z, T w)
- auto Data() -> T*
- auto Data() const -> const T*
-
auto operator[](std::
size_t index) -> T& -
auto operator[](std::
size_t index) const -> const T& - auto operator==(const Vector4& v) const -> bool
- auto operator!=(const Vector4& v) const -> bool
- auto operator-() const -> Vector4
- auto operator+=(const Vector4& v) -> Vector4&
- auto operator-=(const Vector4& v) -> Vector4&
- auto operator*=(const Vector4& v) -> Vector4&
- auto operator/=(const Vector4& v) -> Vector4&
- auto operator+=(T s) -> Vector4&
- auto operator-=(T s) -> Vector4&
- auto operator*=(T s) -> Vector4&
- auto operator/=(T s) -> Vector4&
- auto operator+(const Vector4& v) const -> Vector4
- auto operator-(const Vector4& v) const -> Vector4
- auto operator*(const Vector4& v) const -> Vector4
- auto operator/(const Vector4& v) const -> Vector4
- auto operator+(T s) const -> Vector4
- auto operator-(T s) const -> Vector4
- auto operator*(T s) const -> Vector4
- auto operator/(T s) const -> Vector4
- auto Length() const -> T
- auto SqrLength() const -> T
- auto Normalized() const -> Vector4
- auto Normalize() -> Vector4&
-
template<class S>auto As() -> Vector4<S>
- Converts elements of the vector to a specified type.
- auto ToVector2() const -> Vector2<T>
- auto ToVector3() const -> Vector3<T>