FoxitPDFSDKforWeb
v10.0.0
Foxit PDF SDK for Web
|
PDF matrix for coordinate transformation. More...
Public Member Functions | |
concat (a, b, c, d, e, f, bPrepended) | |
Concatenate with another matrix. More... | |
constructor (a=1, b=0, c=0, d=1, e=0, f=0) | |
getA () | |
Get coefficient a. More... | |
getAngle () | |
Get rotated angle. More... | |
getB () | |
Get coefficient b. More... | |
getC () | |
Get coefficient c. More... | |
getD () | |
Get coefficient d. More... | |
getE () | |
Get coefficient e. More... | |
getF () | |
Get coefficient f. More... | |
getUnitRect () | |
Get a bounding rectangle of the parallelogram composing two unit vectors. More... | |
getXUnit () | |
Get the x-direction unit size. More... | |
getYUnit () | |
Get the y-direction unit size. More... | |
is90Rotated () | |
Current matrix is rotated 90 degrees. | |
isScaled () | |
Current matrix is scaled. | |
matchRect (dest, src) | |
Get a matrix that transforms a source rectangle to dest rectangle. More... | |
reset () | |
reverse (matrix=this) | |
rotate (fRadian, bPrepended) | |
Rotate the matrix. More... | |
rotateAt (dx, dy, fRadian, bPrepended) | |
Rotate the matrix at a position. More... | |
scale (sx, sy, bPrepended) | |
Scale current matrix. More... | |
set (a, b, c, d, e, f) | |
Set matrix's coefficient. More... | |
setReverse (martix) | |
Set the coefficients of the inverse of another matrix to this matrix. More... | |
transformDistance (dx, dy) | |
Transform distance. More... | |
transformPoint (x, y) | |
Transform point. More... | |
transformRect (left, top, right, bottom) | |
Transform a rectangle and return a bounding rectangle. More... | |
transformXDistance (dx) | |
Transform x-direction distance. More... | |
transformYDistance (dy) | |
Transform x-direction distance. More... | |
translate (x, y, bPrepended) | |
Translate the matrix. More... | |
Static Public Member Functions | |
static | Concat2mt (matrix1, matrix2) |
PDF matrix for coordinate transformation.
|
inline |
Concatenate with another matrix.
a | number|Matrix|[number,number,number,number,number,number] - First parameter,should be one of input coefficient a, the matrix to be concatenated or an array with 6 number elements. |
b | number - The input coefficient b. |
c | number - The input coefficient c. |
d | number - The input coefficient d. |
e | number - The input coefficient e. |
f | number - The input coefficient f. |
bPrepended | boolean - |
|
inlinestatic |
|
inline |
Constructors for Matrix
a | number - First construct parameter, could be the input coefficient a, a other Matrix object or an array with 6 number elements. |
b | number - The input coefficient b. |
c | number - The input coefficient c. |
d | number - The input coefficient d. |
e | number - The input coefficient e. |
f | number - The input coefficient f. |
|
inline |
Get coefficient a.
|
inline |
Get rotated angle.
|
inline |
Get coefficient b.
|
inline |
Get coefficient c.
|
inline |
Get coefficient d.
|
inline |
Get coefficient e.
|
inline |
Get coefficient f.
|
inline |
Get a bounding rectangle of the parallelogram composing two unit vectors.
|
inline |
Get the x-direction unit size.
|
inline |
Get the y-direction unit size.
|
inline |
Get a matrix that transforms a source rectangle to dest rectangle.
dest | number[] - The dest rectangle. |
src | number[] - The source rectangle. |
|
inline |
Reset matrix to [1,0,0,1,0,0].
|
inline |
|
inline |
Rotate the matrix.
fRadian | number - Rotation angle in radian. |
bPrepended | boolean - If it's TRUE, a rotation matrix is multiplied at left side, or at right side. |
|
inline |
Rotate the matrix at a position.
dx | number - The x coordinate from which to rotate. |
dy | number - The y coordinate from which to rotate. |
fRadian | number - Rotation angle in radian. |
bPrepended | boolean - If this is TRUE, a rotation matrix is multiplied at left side, or at right side |
|
inline |
Scale current matrix.
sx | number - The x-direction scale coefficient. |
sy | number - The y-direction scale coefficient. |
bPrepended | boolean - If this is TRUE, a scaling matrix is multiplied at left side, or at right side. |
|
inline |
Set matrix's coefficient.
a | number - The input coefficient a. |
b | number - The input coefficient b. |
c | number - The input coefficient c. |
d | number - The input coefficient d. |
e | number - The input coefficient e. |
f | number - The input coefficient f. |
|
inline |
Set the coefficients of the inverse of another matrix to this matrix.
matrix | Matrix - Input matrix. |
|
inline |
Transform distance.
dx | number - X-direction distance |
dy | number - Y-direction distance |
|
inline |
Transform point.
dx | number - Horizen coordinary value of point. |
dy | number - Vertical coordinary value of point. |
|
inline |
Transform a rectangle and return a bounding rectangle.
left | number - Left of rectangle. |
top | number - Top of rectangle. |
right | number - Right of rectangle. |
bottom | number - Bottom of rectangle. |
|
inline |
Transform x-direction distance.
dx | number - X-direction distance |
|
inline |
Transform x-direction distance.
dy | number - Y-direction distance |
|
inline |
Translate the matrix.
x | number - The x-direction delta value. |
y | number - The y-direction delta value. |
bPrepended | boolean - If this is TRUE, a translation matrix is multiplied at left side, or at right side. |