Sparkle 0.0.1
Loading...
Searching...
No Matches
spk::IMatrix< SizeX, SizeY >::Column Class Reference

View of the values belonging to a single matrix column. More...

#include <spk_matrix.hpp>

Collaboration diagram for spk::IMatrix< SizeX, SizeY >::Column:
Collaboration graph

Public Member Functions

float & operator[] (size_t p_index)
 Mutable row access within the column.
const float & operator[] (size_t p_index) const
 Read-only row access within the column.

Detailed Description

template<size_t SizeX, size_t SizeY>
class spk::IMatrix< SizeX, SizeY >::Column

View of the values belonging to a single matrix column.

See also
IMatrix::operator[]
mat[1][2] = 4.0f; // edit third row of the second column
Column-major matrix with basic arithmetic, transforms, and helpers.
Definition spk_matrix.hpp:33

Member Function Documentation

◆ operator[]() [1/2]

template<size_t SizeX, size_t SizeY>
float & spk::IMatrix< SizeX, SizeY >::Column::operator[] ( size_t p_index)
inline

Mutable row access within the column.

Parameters
p_indexRow index to access.
Returns
Reference to the selected row value.

◆ operator[]() [2/2]

template<size_t SizeX, size_t SizeY>
const float & spk::IMatrix< SizeX, SizeY >::Column::operator[] ( size_t p_index) const
inline

Read-only row access within the column.

Parameters
p_indexRow index to access.
Returns
Const reference to the selected row value.

The documentation for this class was generated from the following file: