Skip to content

LiteFX::Math::Vector3u::operator[]

Returns a value from the vector, indexed by the parameter i.

Synopsis

Declared in <litefx/vector.hpp>

[[dllexport, dllimport]] constexpr unsigned int operator[](unsigned int i) const noexcept;

Description

Note that this method wraps the index if it is out of range, i.e., calling the method with index 4 on a 4D vector will return the element at index 0.

Return Value

The value of the element at the provided index.

Parameters

NameDescription
iThe index of the element to return.