Skip to content

LiteFX::Math::Vector::Vector

Initializes a 2D vector using the values provided by x and y.

Synopsis

Declared in <litefx/vector.hpp>

constexpr Vector(
    T x,
    T y) noexcept
requires (DIM == 2);

Parameters

NameDescription
xThe value to initialize the x-component of the vector with.
yThe value to initialize the y-component of the vector with.