wxGraphicsMatrix(3erl)
π¦ wxGraphicsMatrix(3erl) β Erlang Module Definition π¦
okay so bestie, this is the manual page for wxGraphicsMatrix, and itβs giving native affine matrix realness. Weβre gonna go through every type, every function, every detail β no skips, no cap. π
β¨ NAME β¨
wxGraphicsMatrixβ Functions forwxGraphicsMatrixclass
Thatβs the name, periodt. π
πΈ DESCRIPTION πΈ
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. fr fr, thatβs the only way in.
This class is derived (and can use functions) from: wxGraphicsObject
Also, the docs pointer is literally: wxWidgets docs: wxGraphicsMatrix
π§ DATA TYPES π§
wxGraphicsMatrix() = wx:wx_object()
Yep, lowkey thatβs the whole type moment. π«Ά
π₯ EXPORTS π₯
π« concat(This, T) -> 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. order matters, bestie.
π get(This) -> Result
Types:
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. itβs giving six tiny numbers, cute.
π invert(This) -> ok
Types:
This = wxGraphicsMatrix()
Inverts the matrix.
πͺ isEqual(This, T) -> boolean()
Types:
This = T = wxGraphicsMatrix()
Returns true if the elements of the transformation matrix are equal.
π isIdentity(This) -> boolean()
Types:
This = wxGraphicsMatrix()
Return true if this is the identity matrix. (Yes, βReturn,β singular β the original is iconic like that.)
π rotate(This, Angle) -> ok
Types:
This = wxGraphicsMatrix()
Angle = number()
Rotates this matrix clockwise (in radians). radians, not degrees β important vibe check.
π scale(This, XScale, YScale) -> ok
Types:
This = wxGraphicsMatrix()
XScale = YScale = number()
Scales this matrix.
π translate(This, Dx, Dy) -> ok
Types:
This = wxGraphicsMatrix()
Dx = Dy = number()
Translates this matrix.
ποΈ set(This) -> ok
Types:
This = wxGraphicsMatrix()
This is the no-options set moment. Thatβs the whole entry. π
ποΈ set(This, Options :: [Option]) -> ok
Types:
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).
π transformPoint(This) -> {X :: number(), Y :: number()}
Types:
This = wxGraphicsMatrix()
Applies this matrix to a point.
π£οΈ transformDistance(This) -> {Dx :: number(), Dy :: number()}
Types:
This = wxGraphicsMatrix()
Applies this matrix to a distance (ie. performs all transforms except translations). translation is literally not invited, iykyk.
Source/version sign-off, bestie: wxWidgets team. made this page, and itβs rockinβ version wx 2.2.2.1 for wxGraphicsMatrix(3erl). Thereβs no date on the footer, so thatβs the whole cute sign-off β mwah πβ¨ slay.
π¦ where this page comes from
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms