HE_Mesh
5.1.0
|
Public Member Functions | |
RMatrix (String transformationString) | |
void | translate (float tx) |
void | rotate (float angle) |
void | scale (float sx, float sy) |
void | scale (float s) |
void | skewY (float angle) |
Private Member Functions | |
void | set (float m00, float m01, float m02, float m10, float m11, float m12) |
Related Functions | |
(Note that these are not member functions.) | |
RMatrix (float m00, float m01, float m02, float m10, float m11, float m12) | |
RMatrix () | |
RMatrix (RMatrix src) | |
void | apply (float n00, float n01, float n02, float n10, float n11, float n12) |
void | apply (RMatrix rhs) |
void | translate (float tx, float ty) |
void | translate (RPoint t) |
void | rotate (float angle, float vx, float vy) |
void | rotate (float angle, RPoint v) |
void | scale (float sx, float sy, float x, float y) |
void | scale (float s, float x, float y) |
void | scale (float sx, float sy, RPoint p) |
void | scale (float s, RPoint p) |
void | skewX (float angle) |
void | shear (float shx, float shy) |
RMatrix is a very simple interface for creating, holding 3x3 matrices with the most common 2D affine transformations such as translation, rotation, scaling and shearing. We only have access to the first to rows of the matrix the last row is considered a constant 0, 0, 1 in order to have better performance. RMatrix Geometry
geomerative.RMatrix.RMatrix | ( | String | transformationString | ) |
void geomerative.RMatrix.rotate | ( | float | angle | ) |
void geomerative.RMatrix.scale | ( | float | sx, |
float | sy | ||
) |
void geomerative.RMatrix.scale | ( | float | s | ) |
|
private |
void geomerative.RMatrix.skewY | ( | float | angle | ) |
void geomerative.RMatrix.translate | ( | float | tx | ) |
|
related |
Multiply the matrix with another matrix. This is mostly use to chain transformations. RMatrix_apply
n00 | coefficient 00 of the matrix to be applied |
n01 | coefficient 01 of the matrix to be applied |
n02 | coefficient 02 of the matrix to be applied |
n10 | coefficient 10 of the matrix to be applied |
n11 | coefficient 11 of the matrix to be applied |
n12 | coefficient 12 of the matrix to be applied Geometry ( ) ( ) ( ) ( ) |
|
related |
Multiply the matrix with another matrix. This is mostly use to chain transformations. RMatrix_apply
rhs | right hand side matrix Geometry ( ) ( ) ( ) ( ) |
|
related |
Create a new matrix given the coefficients. RMatrix
m00 | coefficient 00 of the matrix |
m01 | coefficient 01 of the matrix |
m02 | coefficient 02 of the matrix |
m10 | coefficient 10 of the matrix |
m11 | coefficient 11 of the matrix |
m12 | coefficient 12 of the matrix Geometry ( ) ( ) ( ) ( ) ( ) |
Copy a matrix. RMatrix
src | source matrix from where to copy the matrix Geometry ( ) ( ) ( ) ( ) ( ) |
|
related |
Apply a rotation to the matrix, given an angle and optionally a rotation center. RPoint_rotate Geometry
angle | the angle of rotation to be applied |
vx | the x coordinate of the center of rotation |
vy | the y coordinate of the center of rotation ( ) ( ) ( ) |
|
related |
Apply a rotation to the matrix, given an angle and optionally a rotation center. RPoint_rotate Geometry
angle | the angle of rotation to be applied |
v | the position vector of the center of rotation ( ) ( ) ( ) |
|
related |
Apply a scale to the matrix, given scaling factors and optionally a scaling center. RPoint_scale Geometry
sx | the scaling coefficient over the x axis |
sy | the scaling coefficient over the y axis |
x | x coordinate of the position vector of the center of the scaling |
y | y coordinate of the position vector of the center of the scaling ( ) ( ) ( ) |
|
related |
Apply a scale to the matrix, given scaling factors and optionally a scaling center. RPoint_scale Geometry
s | the scaling coefficient for a uniform scaling |
x | x coordinate of the position vector of the center of the scaling |
y | y coordinate of the position vector of the center of the scaling ( ) ( ) ( ) |
|
related |
Apply a scale to the matrix, given scaling factors and optionally a scaling center. RPoint_scale Geometry
sx | the scaling coefficient over the x axis |
sy | the scaling coefficient over the y axis |
p | the position vector of the center of the scaling ( ) ( ) ( ) |
|
related |
Apply a scale to the matrix, given scaling factors and optionally a scaling center. RPoint_scale Geometry
s | the scaling coefficient for a uniform scaling |
p | the position vector of the center of the scaling ( ) ( ) ( ) |
|
related |
Use this to apply a shearing to the matrix. RMatrix_translate
shx | x coordinate shearing |
shy | y coordinate shearing Geometry ( ) ( ) ( ) |
|
related |
Use this to apply a skewing to the matrix. RMatrix_skewing
angle | skewing angle Geometry ( ) ( ) ( ) |
|
related |
Apply a translation to the matrix, given the coordinates. RMatrix_translate
tx | x coordinate translation |
ty | y coordinate translation Geometry ( ) ( ) ( ) |
|
related |
Apply a translation to the matrix, given a point. RMatrix_translate
t | vector translation Geometry ( ) ( ) ( ) |