#include <geom/txform.h>
Public Member Functions | |
txform (const vec3< double > &translation, const vec3< double > &scaling, const vec3< double > &rotation_axis, double rotation_angle) | |
geom::txform | inverted () const |
Get the inverse of this transformation. | |
void | translate (const vec3< double > &t) |
void | scale (const vec3< double > &s) |
void | rotate (const vec3< double > &rotation_axis, double rotation_angle) |
txform | mtx_mul (const txform &other) const |
Result = this x other, where 'x' is matrix multiplication. | |
void | transform (const geom::txform &other) |
Equivalent to this = this->mtx_mul(other). | |
vec2< double > | apply_to (const vec2< double > &input) const |
vec3< double > | apply_to (const vec3< double > &input) const |
const double * | col_major_data () const |
void | set_col_major_data (const double *data) |
double | operator[] (unsigned int i) const |
double & | operator[] (unsigned int i) |
void | debug_dump () const |
double | debug_sse (const txform &ref) const |
FOR TESTING/DEBUGGING: compute the sum-squared-error to a reference matrix. | |
Static Public Member Functions | |
static txform | identity () |
Factory function to make an identity matrix. | |
static txform | random () |
Factory function to make a random matrix (uniform distribution in [0,1]). | |
static txform | copy_of (const double *data) |
Factory function to copy an existing array in column-major order. | |
static txform | orthographic (const geom::rect< double > &bounds, double zNear, double zFar) |
Factory function to create an orthographic transform. | |
static txform | no_init () |
Factory function to make a matrix with uninitialized entries. |
Definition at line 45 of file txform.h.
geom::txform geom::txform::random | ( | ) | [static] |
Factory function to make a random matrix (uniform distribution in [0,1]).
This is mainly intended for use in testing contexts.
Definition at line 140 of file txform.cc.
References rutz::default_rand_seed, rutz::urand::fdraw_range(), and m_mtx.