Skip to content

LiteFX::Math::Vector::Vector

Initializes a 4D vector using the values provided by x, y, z and w.

Synopsis

Declared in <litefx/vector.hpp>

constexpr Vector(
    T x,
    T y,
    T z,
    T w) noexcept
requires (DIM == 4);

Parameters

NameDescription
xThe value to initialize the x-component of the vector with.
yThe value to initialize the y-component of the vector with.
zThe value to initialize the z-component of the vector with.
wThe value to initialize the w-component of the vector with.