A wxGraphicsMatrix is a native representation of an affine matrix.
The contents are specific and private to the respective renderer. Instances are ref
counted and can therefore be assigned as usual. The only way to get a valid instance is
via wxGraphicsContext:createMatrix/2 or wxGraphicsRenderer:createMatrix/2.
This class is derived, and can use functions, from:
wxWidgets docs: wxGraphicsMatrix
Summary
Functions
Concatenates the matrix passed with the current matrix.
Returns the component values of the matrix via the argument pointers.
Inverts the matrix.
Returns true if the elements of the transformation matrix are equal.
Return true if this is the identity matrix.
Rotates this matrix clockwise (in radians).
Scales this matrix.
Sets the matrix to the respective values (default values are the identity matrix).
Applies this matrix to a distance (ie.
Applies this matrix to a point.
Translates this matrix.
Types
-type wxGraphicsMatrix() :: wx:wx_object().
Functions
concat(This :: wxGraphicsMatrix(), T :: wxGraphicsMatrix()) -> ok
Types
This = T = wxGraphicsMatrix()
Concatenates the matrix passed with the current matrix.
The effect of the resulting transformation is to first apply the transformation in t to
the coordinates and then apply the transformation in the current matrix to the coordinates.
get(This :: wxGraphicsMatrix()) -> Result
Types
Result = {A :: number(), B :: number(), C :: number(), D :: number(), Tx :: number(), Ty :: number()}
Returns the component values of the matrix via the argument pointers.
invert(This :: wxGraphicsMatrix()) -> ok
Inverts the matrix.
isEqual(This :: wxGraphicsMatrix(), T :: wxGraphicsMatrix()) -> boolean()
Types
This = T = wxGraphicsMatrix()
Returns true if the elements of the transformation matrix are equal.
isIdentity(This :: wxGraphicsMatrix()) -> boolean()
Return true if this is the identity matrix.
rotate(This :: wxGraphicsMatrix(), Angle :: number()) -> ok
Rotates this matrix clockwise (in radians).
scale(This :: wxGraphicsMatrix(), XScale :: number(), YScale :: number()) -> ok
Types
XScale = YScale = number()
Scales this matrix.
-spec set(This) -> ok when This :: wxGraphicsMatrix().
-spec set(This, [Option]) -> ok when This :: wxGraphicsMatrix(), Option :: {a, number()} | {b, number()} | {c, number()} | {d, number()} | {tx, number()} | {ty, number()}.
Sets the matrix to the respective values (default values are the identity matrix).
Applies this matrix to a distance (ie.
performs all transforms except translations).
transformPoint(This :: wxGraphicsMatrix()) -> Result
Applies this matrix to a point.
translate(This :: wxGraphicsMatrix(), Dx :: number(), Dy :: number()) -> ok
Types
Dx = Dy = number()
Translates this matrix.