Skip to content

LiteFX::Math::Size4d

Synopsis

Declared in <litefx/math.hpp>

class [[dllexport, dllimport]] Size4d
    : public Vector<size_t, 4>

Base Classes

NameDescription
Vector<size_t, 4>An algebraic vector type. The value type of a vector must be in standard layout (i.e., std::is_standard_layout_v<T> must evaluate to true). This constraint is enforced at compile time and ensures that vector types can be binary marshaled. For example, the LiteFX::Graphics::Vertex type stores nothing more than a series of vectors. The standard layout constraint ensures that a set of vertices can be converted into a plain byte array and back.

Type Aliases

NameDescription
scalar_type The type of the vector elements.
vec_type The type of the vector itself.

Member Functions

NameDescription
Size4d [constructor]Constructors
~Size4d [destructor]Destructor
operator= Assignment operators
alpha
begin Returns an interator for that addresses the begin of the vector elements.
cbegin Returns a constant interator for that addresses the begin of the vector elements.
cend Returns a constant interator for that addresses the end of the vector elements.
depth
elements Returns a pointer to the elements of the vector.
end Returns an interator for that addresses the end of the vector elements.
height
operator* Multiplication operator
operator*= Multiplication assignment operator
operator+ Addition operator
operator+= Addition assignment operator
operator- Subtraction operator
operator-= Subtraction assignment operator
operator/ Division operator
operator/= Division assignment operator
operator[] Subscript operators
size Returns the number of dimensions of the vector.
w w overloads
width
x x overloads
y y overloads
z z overloads
operator std::array<unsigned long long, 4U> Converts the vector to an instance of std::array.
operator std::vector<unsigned long long> Converts the vector into an instance of type std::vector.

Protected Type Aliases

Name
array_type

Protected Data Members

Name
m_elements