Package io.github.humbleui.skija
Class Matrix44
- java.lang.Object
-
- io.github.humbleui.skija.Matrix44
-
public class Matrix44 extends java.lang.Object4x4 matrix used by SkCanvas and 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)
-
-
Constructor Summary
Constructors Constructor Description Matrix44(float... mat)The constructor parameters are in row-major order.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Matrix33asMatrix33()When converting from Matrix44 to Matrix33, the third row and column is dropped.protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)float[]getMat()Matrix elements are in row-major order.inthashCode()java.lang.StringtoString()
-
-
-
Field Detail
-
_mat
@Internal public final float[] _mat
Matrix elements are in row-major order.
-
IDENTITY
public static final Matrix44 IDENTITY
-
-
Method Detail
-
asMatrix33
public Matrix33 asMatrix33()
When converting from Matrix44 to Matrix33, the third row and column is dropped.
[ a b _ c ] [ a b c ] [ d e _ f ] -> [ d e f ] [ _ _ _ _ ] [ g h i ] [ g h _ i ]
-
getMat
public float[] getMat()
Matrix elements are in row-major order.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-