LiteFX::Math::Size3d::operator[]¶
Returns a reference to a value from the vector, indexed by the parameter i.
Synopsis¶
Declared in <litefx/vector.hpp>
[[dllexport, dllimport]] constexpr unsigned long long& operator[](unsigned int i) 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¶
A reference to a value of the element at the provided index.
Parameters¶
| Name | Description |
|---|---|
| i | The index of the element to return. |