trase
trase::TransformMatrix Struct Reference

a transform matrix in the form More...

#include <Backend.hpp>

Public Member Functions

bool is_identity ()
 
void clear ()
 
void translate (const vfloat2_t &t)
 
void rotate (float angle)
 
std::string to_string ()
 

Public Attributes

float a {1}
 
float b {0}
 
float c {0}
 
float d {1}
 
float e {0}
 
float f {0}
 

Detailed Description

a transform matrix in the form

[a c e] [b d f] [0 0 1]

Member Function Documentation

◆ rotate()

void trase::TransformMatrix::rotate ( float  angle)
inline

[a c e] [cost -sint 0] [a' c' e'] [b d f] * [sint cost 0] = [b' d' f'] [0 0 1] [0 0 1] [0 0 1]

◆ translate()

void trase::TransformMatrix::translate ( const vfloat2_t t)
inline

[a c e] [1 0 tx] [a' c' e'] [b d f] * [0 1 ty] = [b' d' f'] [0 0 1] [0 0 1] [0 0 1]


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