SourcePP
Several modern C++20 libraries for sanely parsing Valve's formats.
Loading...
Searching...
No Matches
sourcepp::math::Mat< M_, N_, P > Struct Template Reference

#include <Math.h>

Collaboration diagram for sourcepp::math::Mat< M_, N_, P >:

Public Types

using value_type = P

Public Member Functions

constexpr const P * data () const
constexpr P * data ()
constexpr uint8_t rows () const
constexpr uint8_t cols () const
P * operator[] (uint8_t i)
const P * operator[] (uint8_t i) const

Public Attributes

values [M][N]

Static Public Attributes

static constexpr uint8_t M = M_
static constexpr uint8_t N = N_

Detailed Description

template<uint8_t M_, uint8_t N_, Arithmetic P>
struct sourcepp::math::Mat< M_, N_, P >

Definition at line 388 of file Math.h.

Member Typedef Documentation

◆ value_type

template<uint8_t M_, uint8_t N_, Arithmetic P>
using sourcepp::math::Mat< M_, N_, P >::value_type = P

Definition at line 394 of file Math.h.

Member Function Documentation

◆ cols()

template<uint8_t M_, uint8_t N_, Arithmetic P>
uint8_t sourcepp::math::Mat< M_, N_, P >::cols ( ) const
inlinenodiscardconstexpr

Definition at line 410 of file Math.h.

◆ data() [1/2]

template<uint8_t M_, uint8_t N_, Arithmetic P>
P * sourcepp::math::Mat< M_, N_, P >::data ( )
inlinenodiscardconstexpr

Definition at line 402 of file Math.h.

◆ data() [2/2]

template<uint8_t M_, uint8_t N_, Arithmetic P>
const P * sourcepp::math::Mat< M_, N_, P >::data ( ) const
inlinenodiscardconstexpr

Definition at line 398 of file Math.h.

◆ operator[]() [1/2]

template<uint8_t M_, uint8_t N_, Arithmetic P>
P * sourcepp::math::Mat< M_, N_, P >::operator[] ( uint8_t i)
inlinenodiscard

Definition at line 414 of file Math.h.

◆ operator[]() [2/2]

template<uint8_t M_, uint8_t N_, Arithmetic P>
const P * sourcepp::math::Mat< M_, N_, P >::operator[] ( uint8_t i) const
inlinenodiscard

Definition at line 416 of file Math.h.

◆ rows()

template<uint8_t M_, uint8_t N_, Arithmetic P>
uint8_t sourcepp::math::Mat< M_, N_, P >::rows ( ) const
inlinenodiscardconstexpr

Definition at line 406 of file Math.h.

Member Data Documentation

◆ M

template<uint8_t M_, uint8_t N_, Arithmetic P>
uint8_t sourcepp::math::Mat< M_, N_, P >::M = M_
staticconstexpr

Definition at line 389 of file Math.h.

◆ N

template<uint8_t M_, uint8_t N_, Arithmetic P>
uint8_t sourcepp::math::Mat< M_, N_, P >::N = N_
staticconstexpr

Definition at line 391 of file Math.h.

◆ values

template<uint8_t M_, uint8_t N_, Arithmetic P>
P sourcepp::math::Mat< M_, N_, P >::values[M][N]

Definition at line 396 of file Math.h.


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