wxGraphicsMatrix(3)
okay so bestie, this is the wxGraphicsMatrix(3) page from the Erlang Module Definition manual, and it's giving native representation of an affine matrix realness π
no cap, we're about to break it all down.
πΈ NAME πΈ
- wxGraphicsMatrix β a native representation of an affine matrix. periodt.
π¦ DESCRIPTION π¦
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:
wxGraphicsObject
wxWidgets docs: wxGraphicsMatrix
π DATA TYPES π
wxGraphicsMatrix() :: wx:wx_object().
π FUNCTIONS π
π concat
concat(This, T) -> ok
when This :: wxGraphicsMatrix(), 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. slay.
π get
get(This) -> Result
when
Result ::
{A :: number(),
B :: number(),
C :: number(),
D :: number(),
Tx :: number(),
Ty :: number()},
This :: wxGraphicsMatrix().
Returns the component values of the matrix via the argument pointers. iconic.
π invert
invert(This) -> ok when This :: wxGraphicsMatrix().
Inverts the matrix. no cap.
π isEqual
isEqual(This, T) -> boolean()
when
This :: wxGraphicsMatrix(), T ::
wxGraphicsMatrix().
Returns true if the elements of the transformation matrix are equal. fr fr.
π isIdentity
isIdentity(This) -> boolean() when This :: wxGraphicsMatrix().
Return true if this is the identity matrix. bestie.
π rotate
rotate(This, Angle) -> ok
when This :: wxGraphicsMatrix(), Angle :: number().
Rotates this matrix clockwise (in radians). π
π scale
scale(This, XScale, YScale) -> ok
when
This :: wxGraphicsMatrix(),
XScale :: number(),
YScale :: number().
Scales this matrix. duh.
π set
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). periodt.
π transformDistance
transformDistance(This) -> {Dx :: number(), Dy :: number()}
when This :: wxGraphicsMatrix().
Applies this matrix to a distance (ie. performs all transforms except translations). it's giving non-translational realness.
π transformPoint
transformPoint(This) -> {X :: number(), Y :: number()}
when This :: wxGraphicsMatrix().
Applies this matrix to a point. slay.
π translate
translate(This, Dx, Dy) -> ok
when
This :: wxGraphicsMatrix(),
Dx :: number(),
Dy :: number().
Translates this matrix. π
π this page was brought to you by Ericsson AB, wx 2.6, and the Erlang Module Definition manual β mwah! π
π¦ where this page comes from
- ubuntu stonking: erlang-doc 1:29.0.6+dfsg-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms