Euphoria
eu::mat2f Struct Reference

#include <mat2.h>

Public Member Functions

bool operator== (const mat2f &rhs)=delete
 
float * get_data_ptr ()
 
float get (int row, int col) const
 
vec2f get_column (int c) const
 
vec2f get_row (int r) const
 
const float * get_data_ptr () const
 
void operator+= (const mat2f &rhs)
 
void operator-= (const mat2f &rhs)
 

Static Public Member Functions

static mat2f from_col_major (float t00, float t01, float t10, float t11)
 
constexpr static mat2f from_row_major (float t00, float t10, float t01, float t11)
 
constexpr static mat2f from_scalar (float scalar)
 
static mat2f from_stretch_x (float k)
 
static mat2f from_stretch_y (float k)
 
static mat2f from_rotation (const Angle &a)
 

Detailed Description

Definition at line 9 of file mat2.h.

Member Function Documentation

◆ from_col_major()

mat2f eu::mat2f::from_col_major ( float  t00,
float  t01,
float  t10,
float  t11 
)
static

Definition at line 8 of file mat2.cc.

◆ from_rotation()

mat2f eu::mat2f::from_rotation ( const Angle a)
static

Definition at line 40 of file mat2.cc.

◆ from_row_major()

constexpr static mat2f eu::mat2f::from_row_major ( float  t00,
float  t10,
float  t01,
float  t11 
)
inlinestaticconstexpr

Definition at line 19 of file mat2.h.

◆ from_scalar()

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

Definition at line 32 of file mat2.h.

◆ from_stretch_x()

mat2f eu::mat2f::from_stretch_x ( float  k)
static

Definition at line 19 of file mat2.cc.

◆ from_stretch_y()

mat2f eu::mat2f::from_stretch_y ( float  k)
static

Definition at line 30 of file mat2.cc.

◆ get()

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

Definition at line 87 of file mat2.cc.

◆ get_column()

vec2f eu::mat2f::get_column ( int  c) const

Definition at line 94 of file mat2.cc.

◆ get_data_ptr() [1/2]

float * eu::mat2f::get_data_ptr ( )

Definition at line 80 of file mat2.cc.

◆ get_data_ptr() [2/2]

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

Definition at line 73 of file mat2.cc.

◆ get_row()

vec2f eu::mat2f::get_row ( int  r) const

Definition at line 101 of file mat2.cc.

◆ operator+=()

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

Definition at line 53 of file mat2.cc.

◆ operator-=()

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

Definition at line 63 of file mat2.cc.

◆ operator==()

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

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