TinyGPU
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
WireFrame3D< RGB_T >::Mat4 Struct Reference

Represents a 4x4 transformation matrix. More...

#include <WireFrame3D.h>

Public Member Functions

Mat4 operator* (const Mat4 &other) const
 Multiplies two matrices.
 
Vec4 operator* (const Vec4 &vector) const
 Transforms a homogeneous vector.
 

Static Public Member Functions

static Mat4 identity ()
 Returns an identity matrix.
 

Public Attributes

float m [4][4] = {}
 

Detailed Description

template<typename RGB_T = RGB565>
struct tinygpu::WireFrame3D< RGB_T >::Mat4

Represents a 4x4 transformation matrix.

Member Function Documentation

◆ identity()

static Mat4 identity ( )
inlinestatic

Returns an identity matrix.

◆ operator*() [1/2]

Mat4 operator* ( const Mat4 other) const
inline

Multiplies two matrices.

◆ operator*() [2/2]

Vec4 operator* ( const Vec4 vector) const
inline

Transforms a homogeneous vector.

Member Data Documentation

◆ m

float m[4][4] = {}

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