AffineTransform Class

Module: cc Parent Module: cc

cc.AffineTransform class represent an affine transform matrix. It's composed basically by translation, rotation, scale transformations.
Please do not use its constructor directly, use cc.affineTransformMake alias function instead.

Index

Methods

Details

Methods

affineTransformMake

Create a cc.AffineTransform object with all contents in the matrix.

meta description
Returns AffineTransform
Defined in cocos2d/core/value-types/CCAffineTransform.js:56
Parameters
affineTransformClone

Clone a cc.AffineTransform object from the specified transform.

meta description
Returns AffineTransform
Defined in cocos2d/core/value-types/CCAffineTransform.js:72
Parameters
pointApplyAffineTransform

Apply the affine transformation on a point.

meta description
Returns Vec2
Defined in cocos2d/core/value-types/CCAffineTransform.js:83
Parameters
sizeApplyAffineTransform

Apply the affine transformation on a size.

meta description
Returns Size
Defined in cocos2d/core/value-types/CCAffineTransform.js:125
Parameters
affineTransformMakeIdentity

Create a identity transformation matrix:
[ 1, 0, 0,
0, 1, 0 ]

meta description
Returns AffineTransform
Defined in cocos2d/core/value-types/CCAffineTransform.js:137
rectApplyAffineTransform

Apply the affine transformation on a rect.

meta description
Returns Rect
Defined in cocos2d/core/value-types/CCAffineTransform.js:169
Parameters
obbApplyAffineTransform

Apply the affine transformation on a rect, and truns to an Oriented Bounding Box.

meta description
Defined in cocos2d/core/value-types/CCAffineTransform.js:224
Parameters
affineTransformTranslate

Create a new affine transformation with a base transformation matrix and a translation based on it.

meta description
Returns AffineTransform
Defined in cocos2d/core/value-types/CCAffineTransform.js:258
Parameters
affineTransformScale

Create a new affine transformation with a base transformation matrix and a scale based on it.

meta description
Returns AffineTransform
Defined in cocos2d/core/value-types/CCAffineTransform.js:278
Parameters
affineTransformRotate

Create a new affine transformation with a base transformation matrix and a rotation based on it.

meta description
Returns AffineTransform
Defined in cocos2d/core/value-types/CCAffineTransform.js:291
Parameters
affineTransformConcat

Concatenate a transform matrix to another and return the result:
t' = t1 * t2

meta description
Returns AffineTransform
Defined in cocos2d/core/value-types/CCAffineTransform.js:311
Parameters
affineTransformConcatIn

Concatenate a transform matrix to another
The results are reflected in the first matrix.
t' = t1 * t2

meta description
Returns AffineTransform
Defined in cocos2d/core/value-types/CCAffineTransform.js:332
Parameters
affineTransformEqualToTransform

Return true if an affine transform equals to another, false otherwise.

meta description
Returns Boolean
Defined in cocos2d/core/value-types/CCAffineTransform.js:356
Parameters
affineTransformInvert

Get the invert transform of an AffineTransform object.

meta description
Returns AffineTransform
Defined in cocos2d/core/value-types/CCAffineTransform.js:368
Parameters
affineTransformInvert

Put the invert transform of an AffineTransform object into the out AffineTransform object.

meta description
Defined in cocos2d/core/value-types/CCAffineTransform.js:394
Parameters

results matching ""

    No results matching ""