a transformation which stored the first row of a 3x3 perspective matrix More...
#include <libwps_internal.h>
Static Public Member Functions | |
static WPSTransformation | translation (Vec2f const &trans) |
returns a translation transformation | |
static WPSTransformation | scale (Vec2f const &trans) |
returns a scaling transformation | |
static WPSTransformation | rotation (float angle, Vec2f const ¢er=Vec2f(0, 0)) |
returns a rotation transformation around center. | |
static WPSTransformation | shear (Vec2f s, Vec2f const ¢er=Vec2f(0, 0)) |
returns a shear transformation letting center invariant, ie. | |
Protected Attributes | |
std::pair< WPSVec3f, WPSVec3f > | m_data |
the data | |
bool | m_isIdentity |
flag to know if this matrix is an identity matrix | |
a transformation which stored the first row of a 3x3 perspective matrix
|
inlineexplicit |
constructor
Referenced by rotation(), scale(), shear(), and translation().
|
default |
|
default |
|
inline |
check if a matrix is the identity matrix
Referenced by WPSTransformation().
bool WPSTransformation::decompose | ( | float & | rotation, |
Vec2f & | shearing, | ||
WPSTransformation & | transform, | ||
Vec2f const & | center ) const |
try to decompose the matrix in a rotation + scaling/translation matrix.
Note: the center of rotation is given before applying the transformation(this)
|
inline |
returns true if the matrix is an identity matrix
Referenced by LotusGraph::readGraphic().
operator* for direction
Referenced by operator*().
|
inline |
operator!=
|
inline |
operator* for transform
|
inline |
operator*=
|
inline |
operator<
|
inline |
operator<=
|
default |
|
default |
|
inline |
operator==
|
inline |
operator>
|
inline |
operator>=
the two extremum points which defined the box
c | 0 means the minimum and 1 the maximum |
|
static |
returns a rotation transformation around center.
Referenced by decompose(), and LotusGraphInternal::ZonePc::getTransformation().
|
inlinestatic |
returns a scaling transformation
Referenced by Quattro9Graph::sendShape().
|
inlinestatic |
returns a shear transformation letting center invariant, ie.
a matrix ( 1 s[0] -s[0]*center[1], s[1] 1 -s[1]*center[0], 0 0 1)
Referenced by decompose().
|
inlinestatic |
returns a translation transformation
Referenced by LotusGraphInternal::ZonePc::getTransformation(), and Quattro9Graph::sendShape().
the data
Referenced by checkIdentity(), multiplyDirection(), operator!=(), operator*(), operator<(), operator<=(), operator==(), operator>(), operator>=(), and operator[]().
|
mutableprotected |
flag to know if this matrix is an identity matrix
Referenced by checkIdentity(), decompose(), isIdentity(), multiplyDirection(), operator*(), and operator*().