Matrix 2x2.
More...
|
void | assert_size (const size_t &k1, const size_t &k2) const |
| assert that a size_t belongs to [[0,1]] More...
|
|
|
float | m [4] |
| internal storage of the matrix More...
|
|
cpe::matrix2::matrix2 |
( |
| ) |
|
cpe::matrix2::matrix2 |
( |
float |
x00, |
|
|
float |
x01, |
|
|
float |
x10, |
|
|
float |
x11 |
|
) |
| |
direct constructor with every value
References m.
void cpe::matrix2::assert_size |
( |
const size_t & |
k1, |
|
|
const size_t & |
k2 |
|
) |
| const |
|
private |
assert that a size_t belongs to [[0,1]]
Referenced by operator()().
float cpe::matrix2::operator() |
( |
const size_t & |
k1, |
|
|
const size_t & |
k2 |
|
) |
| const |
Access to the k_th entry (k in [0,1])
References assert_size(), and m.
float & cpe::matrix2::operator() |
( |
const size_t & |
k1, |
|
|
const size_t & |
k2 |
|
) |
| |
Access to the k_th entry (k in [0,1])
References assert_size(), and m.
matrix2 cpe::matrix2::operator* |
( |
float |
s | ) |
const |
multiply by a scalar operator
vec2 cpe::matrix2::operator* |
( |
const vec2 & |
v | ) |
const |
matrix2 & cpe::matrix2::operator*= |
( |
float |
s | ) |
|
matrix2 cpe::matrix2::operator+ |
( |
float |
s | ) |
const |
matrix2 & cpe::matrix2::operator+= |
( |
float |
s | ) |
|
matrix2 cpe::matrix2::operator- |
( |
float |
s | ) |
const |
matrix2 cpe::matrix2::operator- |
( |
| ) |
const |
matrix2 & cpe::matrix2::operator-= |
( |
float |
s | ) |
|
matrix2 cpe::matrix2::operator/ |
( |
float |
s | ) |
const |
divide by a scalar operator
References m, and matrix2().
matrix2 & cpe::matrix2::operator/= |
( |
float |
s | ) |
|
const float * cpe::matrix2::pointer |
( |
| ) |
const |
float * cpe::matrix2::pointer_unprotected |
( |
| ) |
|
fast pointer access
- Warning
- unprotected access
References m.
Referenced by operator*().
matrix2 cpe::matrix2::product_compontentwise |
( |
const matrix2 & |
m | ) |
const |
does componentwise multiplication
References m, and matrix2().
matrix2 & cpe::matrix2::product_compontentwise_internal |
( |
const matrix2 & |
m | ) |
|
does componentwise multiplication
References m.
matrix2 cpe::matrix2::rotation |
( |
float |
angle | ) |
|
|
static |
matrix2 cpe::matrix2::scale |
( |
float |
s | ) |
|
|
static |
matrix2 cpe::matrix2::scale |
( |
float |
s_x, |
|
|
float |
s_y |
|
) |
| |
|
static |
std::vector< float > cpe::matrix2::to_vector |
( |
| ) |
const |
convert 3x3 matrix into a vector of float of size 9
References m.
matrix2 cpe::matrix2::transposed |
( |
| ) |
const |
internal storage of the matrix
Referenced by matrix2(), operator()(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), pointer(), pointer_unprotected(), product_compontentwise(), product_compontentwise_internal(), to_vector(), and transposed().
The documentation for this class was generated from the following files:
- /home/damien/work/2012_2013_teaching/2013_4eti_synthese_images/2013/TP2_ray_tracing/TP_ray_tracing_test_etudiant/lib3d/matrix2.hpp
- /home/damien/work/2012_2013_teaching/2013_4eti_synthese_images/2013/TP2_ray_tracing/TP_ray_tracing_test_etudiant/lib3d/matrix2.cpp