Euphoria
mat2.cc File Reference
#include "base/mat2.h"

Go to the source code of this file.

Namespaces

 eu
 

Macros

#define OP(i)   data[i] += rhs.data[i]
 
#define OP(i)   data[i] -= rhs.data[i]
 
#define OP(r, c)    get_component_multiply_sum(lhs.get_row(r), rhs.get_column(c))
 
#define OP(r)   get_component_multiply_sum(lhs.get_row(r), rhs)
 

Functions

std::string eu::to_string (const mat2f &m)
 
mat2f eu::operator+ (const mat2f &lhs, const mat2f &rhs)
 
mat2f eu::operator- (const mat2f &lhs, const mat2f &rhs)
 
float eu::get_component_multiply_sum (const vec2f &lhs, const vec2f &rhs)
 
mat2f eu::operator* (const mat2f &lhs, const mat2f &rhs)
 
vec2f eu::operator* (const mat2f &lhs, const vec2f &rhs)
 

Macro Definition Documentation

◆ OP [1/4]

#define OP (   i)    data[i] += rhs.data[i]

◆ OP [2/4]

#define OP (   i)    data[i] -= rhs.data[i]

◆ OP [3/4]

#define OP (   r)    get_component_multiply_sum(lhs.get_row(r), rhs)

◆ OP [4/4]

#define OP (   r,
 
)     get_component_multiply_sum(lhs.get_row(r), rhs.get_column(c))