CSEngine
Loading...
Searching...
No Matches
CSE::Matrix2< T > Class Template Reference

Public Member Functions

 Matrix2 (const T *m)
 
const T * Pointer () const
 

Public Attributes

vec2 x
 
vec2 y
 

Detailed Description

template<typename T>
class CSE::Matrix2< T >

Definition at line 9 of file Matrix.h.

Constructor & Destructor Documentation

◆ Matrix2() [1/2]

template<typename T >
CSE::Matrix2< T >::Matrix2 ( )
inline

Definition at line 15 of file Matrix.h.

15 {
16 MAT2_XX = 1;
17 MAT2_XY = 0;
18 MAT2_YX = 0;
19 MAT2_YY = 1;
20 }

◆ Matrix2() [2/2]

template<typename T >
CSE::Matrix2< T >::Matrix2 ( const T *  m)
inlineexplicit

Definition at line 22 of file Matrix.h.

22 {
23 MAT2_XX = m[0];
24 MAT2_XY = m[1];
25 MAT2_YX = m[2];
26 MAT2_YY = m[3];
27 }

Member Function Documentation

◆ Pointer()

template<typename T >
const T * CSE::Matrix2< T >::Pointer ( ) const
inline

Definition at line 30 of file Matrix.h.

30 {
31 return &MAT2_XX;
32 }

Member Data Documentation

◆ x

template<typename T >
vec2 CSE::Matrix2< T >::x

Definition at line 12 of file Matrix.h.

◆ y

template<typename T >
vec2 CSE::Matrix2< T >::y

Definition at line 13 of file Matrix.h.


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