Home

transf.hxx File Reference

#include "logical.h"
#include "base.hxx"
#include "dcl_base.h"
#include "debugmsc.hxx"
#include "vector.hxx"
#include "unitvec.hxx"
#include "matrix.hxx"

Classes

class  SPAtransf
 Represents a general 3D affine transformation. More...
struct  transf_decompose_data
 Represents the decomposition of a general transformation into a series of elementary transformations. More...

Functions

SPAtransf coordinate_transf (SPAposition const &new_origin, SPAunit_vector const &new_x_axis, SPAunit_vector const &new_y_axis)
 Constructs a coordinate transformation.
SPAposition operator* (SPAposition const &p, SPAtransf const &t)
 Transforms a position.
SPAunit_vector operator* (SPAunit_vector const &uv, SPAtransf const &t)
 Transforms a unit vector by the rotation matrix in a transformation.
SPAvector operator* (SPAvector const &v, SPAtransf const &t)
 Transforms a vector by an affine transformation.
SPAtransf operator* (SPAtransf const &t1, SPAtransf const *t2)
 Creates the composition of two transforms.
SPAtransf operator* (SPAtransf const &t1, SPAtransf const &t2)
 Creates the composition of two transforms.
SPAtransf reflect_transf (SPAvector const &axis)
 Constructs a transformation corresponding to a reflection through a plane, specified by its normal.
SPAtransf rotate_transf (double angle, SPAvector const &axis)
 Constructs a transformation corresponding to a simple rotation by an angle about a given axis.
SPAtransf scale_transf (double xs, double ys, double zs, double xys, double xzs, double yzs)
 Constructs a transformation that both scales non-uniformly and shears.
SPAtransf scale_transf (double xs, double ys, double zs)
 Constructs a transformation that scales non-uniformly in the x, y, and z directions.
SPAtransf scale_transf (double scale)
 Constructs a transformation that scales uniformly in all directions.
SPAtransf shear_transf (double shearxy, double shearxz, double shearyz)
 Constructs a shear transformation.
SPAtransf translate_transf (SPAvector const &disp)
 Constructs a transformation corresponding to a translation by a given vector.

Detailed Description