M44
- class M44
4x4 matrix used by
Canvasand other parts of Skia.Skia assumes a right-handed coordinate system: +X goes to the right +Y goes down +Z goes into the screen (away from the viewer)
Methods
Overloaded function.
Overloaded function.
Overloaded function.
Returns one matrix value from a particular row/column.
Set one matrix value at a particular row/column.
Methods
- static M44.Perspective(near: SupportsFloat | SupportsIndex, far: SupportsFloat | SupportsIndex, angle: SupportsFloat | SupportsIndex) skia.M44
- static M44.Scale(x: SupportsFloat | SupportsIndex, y: SupportsFloat | SupportsIndex, z: SupportsFloat | SupportsIndex = 1) skia.M44
- static M44.Translate(x: SupportsFloat | SupportsIndex, y: SupportsFloat | SupportsIndex, z: SupportsFloat | SupportsIndex = 0) skia.M44
- M44.__init__(*args, **kwargs)
Overloaded function.
__init__(self: skia.M44) -> None
__init__(self: skia.M44, src: skia.Matrix) -> None
__init__(self: skia.M44, a: skia.M44, b: skia.M44) -> None
- M44.asM33(self: skia.M44) skia.Matrix
- M44.postTranslate(self: skia.M44, x: SupportsFloat | SupportsIndex, y: SupportsFloat | SupportsIndex, z: SupportsFloat | SupportsIndex = 0) skia.M44
- M44.preConcat(*args, **kwargs)
Overloaded function.
preConcat(self: skia.M44, m: skia.M44) -> skia.M44
preConcat(self: skia.M44, m: skia.Matrix) -> skia.M44
- M44.preScale(*args, **kwargs)
Overloaded function.
preScale(self: skia.M44, x: typing.SupportsFloat | typing.SupportsIndex, y: typing.SupportsFloat | typing.SupportsIndex) -> skia.M44
preScale(self: skia.M44, x: typing.SupportsFloat | typing.SupportsIndex, y: typing.SupportsFloat | typing.SupportsIndex, z: typing.SupportsFloat | typing.SupportsIndex) -> skia.M44
- M44.preTranslate(self: skia.M44, x: SupportsFloat | SupportsIndex, y: SupportsFloat | SupportsIndex, z: SupportsFloat | SupportsIndex = 0) skia.M44
- M44.rc(self: skia.M44, r: SupportsInt | SupportsIndex, c: SupportsInt | SupportsIndex) float
Returns one matrix value from a particular row/column.
- Parameters:
r – matrix row to fetch
c – matrix column to fetch
- Returns:
value at the given matrix position
- M44.setRC(self: skia.M44, r: SupportsInt | SupportsIndex, c: SupportsInt | SupportsIndex, value: SupportsFloat | SupportsIndex) None
Set one matrix value at a particular row/column.
- Parameters:
r – matrix row to set
c – matrix column to set
value – value to set
- M44.setRotateUnitSinCos(self: skia.M44, axis: SkV3, sinAngle: SupportsFloat | SupportsIndex, cosAngle: SupportsFloat | SupportsIndex) skia.M44