Euphoria
eu::mat3f Struct Reference

#include <mat3.h>

Public Member Functions

 mat3f (const mat2f &mat)
 
bool operator== (const mat3f &rhs)=delete
 
float * get_data_ptr ()
 
float get (int row, int col) const
 
vec3f get_axis (int col) const
 
mat3f get_rotated (const AxisAngle &aa) const
 
mat3f get_scaled (const Scale3f &scale) const
 
vec3f get_column (int c) const
 
vec3f get_row (int r) const
 
vec3f get_major () const
 
vec3f get_x_axis () const
 
vec3f get_y_axis () const
 
vec3f get_z_axis () const
 
mat3f get_transposed () const
 
const float * get_data_ptr () const
 
void operator+= (const mat3f &rhs)
 
void operator-= (const mat3f &rhs)
 

Static Public Member Functions

static mat3f from_major (const Scale3f &major)
 
static mat3f from_scale (const Scale3f &scale)
 
static mat3f from_translation2d (const vec2f &t)
 
static mat3f from_rot_x (const Angle &a)
 
static mat3f from_rot_y (const Angle &a)
 
static mat3f from_rot_z (const Angle &a)
 
static mat3f from_axis_angle (const AxisAngle &aa)
 
constexpr static mat3f from_scalar (float scalar)
 
static mat3f from_col_major (float t00, float t01, float t02, float t10, float t11, float t12, float t20, float t21, float t22)
 
constexpr static mat3f from_row_major (float t00, float t10, float t20, float t01, float t11, float t21, float t02, float t12, float t22)
 

Detailed Description

Definition at line 11 of file mat3.h.

Constructor & Destructor Documentation

◆ mat3f()

eu::mat3f::mat3f ( const mat2f mat)
explicit

Definition at line 7 of file mat3.cc.

Member Function Documentation

◆ from_axis_angle()

mat3f eu::mat3f::from_axis_angle ( const AxisAngle aa)
static

Definition at line 113 of file mat3.cc.

◆ from_col_major()

mat3f eu::mat3f::from_col_major ( float  t00,
float  t01,
float  t02,
float  t10,
float  t11,
float  t12,
float  t20,
float  t21,
float  t22 
)
static

Definition at line 20 of file mat3.cc.

◆ from_major()

mat3f eu::mat3f::from_major ( const Scale3f major)
static

Definition at line 38 of file mat3.cc.

◆ from_rot_x()

mat3f eu::mat3f::from_rot_x ( const Angle a)
static

Definition at line 73 of file mat3.cc.

◆ from_rot_y()

mat3f eu::mat3f::from_rot_y ( const Angle a)
static

Definition at line 88 of file mat3.cc.

◆ from_rot_z()

mat3f eu::mat3f::from_rot_z ( const Angle a)
static

Definition at line 103 of file mat3.cc.

◆ from_row_major()

constexpr static mat3f eu::mat3f::from_row_major ( float  t00,
float  t10,
float  t20,
float  t01,
float  t11,
float  t21,
float  t02,
float  t12,
float  t22 
)
inlinestaticconstexpr

Definition at line 42 of file mat3.h.

◆ from_scalar()

constexpr static mat3f eu::mat3f::from_scalar ( float  scalar)
inlinestaticconstexpr

Definition at line 24 of file mat3.h.

◆ from_scale()

mat3f eu::mat3f::from_scale ( const Scale3f scale)
static

Definition at line 52 of file mat3.cc.

◆ from_translation2d()

mat3f eu::mat3f::from_translation2d ( const vec2f t)
static

Definition at line 60 of file mat3.cc.

◆ get()

float eu::mat3f::get ( int  row,
int  col 
) const

Definition at line 237 of file mat3.cc.

◆ get_axis()

vec3f eu::mat3f::get_axis ( int  col) const

Definition at line 147 of file mat3.cc.

◆ get_column()

vec3f eu::mat3f::get_column ( int  c) const

Definition at line 244 of file mat3.cc.

◆ get_data_ptr() [1/2]

float * eu::mat3f::get_data_ptr ( )

Definition at line 230 of file mat3.cc.

◆ get_data_ptr() [2/2]

const float * eu::mat3f::get_data_ptr ( ) const

Definition at line 223 of file mat3.cc.

◆ get_major()

vec3f eu::mat3f::get_major ( ) const

Definition at line 140 of file mat3.cc.

◆ get_rotated()

mat3f eu::mat3f::get_rotated ( const AxisAngle aa) const

Definition at line 209 of file mat3.cc.

◆ get_row()

vec3f eu::mat3f::get_row ( int  r) const

Definition at line 251 of file mat3.cc.

◆ get_scaled()

mat3f eu::mat3f::get_scaled ( const Scale3f scale) const

Definition at line 216 of file mat3.cc.

◆ get_transposed()

mat3f eu::mat3f::get_transposed ( ) const

Definition at line 175 of file mat3.cc.

◆ get_x_axis()

vec3f eu::mat3f::get_x_axis ( ) const

Definition at line 154 of file mat3.cc.

◆ get_y_axis()

vec3f eu::mat3f::get_y_axis ( ) const

Definition at line 161 of file mat3.cc.

◆ get_z_axis()

vec3f eu::mat3f::get_z_axis ( ) const

Definition at line 168 of file mat3.cc.

◆ operator+=()

void eu::mat3f::operator+= ( const mat3f rhs)

Definition at line 187 of file mat3.cc.

◆ operator-=()

void eu::mat3f::operator-= ( const mat3f rhs)

Definition at line 198 of file mat3.cc.

◆ operator==()

bool eu::mat3f::operator== ( const mat3f rhs)
delete

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