Value::SetDisplayMatrix

Value::SetDisplayMatrix
SF_INLINE bool SetDisplayMatrix(const Render::Matrix2F& mat);
Description

SetDisplayMatrix sets the display matrix of a display object. This will overwrite all properties defined by the matrix, such as translation, scaling, rotation and shearing. Only valid for DisplayObject type. Note that this method is for advanced users only. Rotation is expected to be in radians and scaling normalized to 1. Translation is expected to be in pixels in the display object’s coordinate system.

Parameters
Parameters 
Description 
const Render::Matrix2F& mat 
The display matrix to be set on the display object. 
Return Value

True if the display matrix was set, otherwise false. A false value will also be returned if the display object was unloaded.