Record Class GuiTransform.Matrix2d
java.lang.Object
java.lang.Record
com.render.api.gui.effects.GuiTransform.Matrix2d
- Record Components:
a- horizontal X basisb- vertical X basisc- horizontal Y basisd- vertical Y basistx- horizontal translationty- vertical translation
- All Implemented Interfaces:
GuiTransform.Operation
- Enclosing class:
GuiTransform
public static record GuiTransform.Matrix2d(float a, float b, float c, float d, float tx, float ty)
extends Record
implements GuiTransform.Operation
CSS-compatible 2D matrix using
x' = a*x + c*y + tx and
y' = b*x + d*y + ty.-
Constructor Summary
ConstructorsConstructorDescriptionMatrix2d(float a, float b, float c, float d, float tx, float ty) Creates an instance of aMatrix2drecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloata()Returns the value of thearecord component.floatb()Returns the value of thebrecord component.floatc()Returns the value of thecrecord component.floatd()Returns the value of thedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.floattx()Returns the value of thetxrecord component.floatty()Returns the value of thetyrecord component.
-
Constructor Details
-
Matrix2d
public Matrix2d(float a, float b, float c, float d, float tx, float ty) Creates an instance of aMatrix2drecord class.
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
a
-
b
-
c
-
d
-
tx
-
ty
-