Record Class GuiTransform.Affine
java.lang.Object
java.lang.Record
com.render.api.gui.effects.GuiTransform.Affine
- Record Components:
a- horizontal X basisb- vertical X basisc- horizontal Y basisd- vertical Y basistx- horizontal translationty- vertical translation
- Enclosing class:
GuiTransform
public static record GuiTransform.Affine(float a, float b, float c, float d, float tx, float ty)
extends Record
Resolved CSS-compatible 2D affine matrix.
Coordinates use x' = a*x + c*y + tx and
y' = b*x + d*y + ty.
-
Constructor Summary
ConstructorsConstructorDescriptionAffine(float a, float b, float c, float d, float tx, float ty) Creates an instance of aAffinerecord 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.floatfinal booleanIndicates whether some other object is "equal to" this one.booleanfinite()final inthashCode()Returns a hash code value for this object.inverse()inverse(float x, float y) multiply(GuiTransform.Affine right) final StringtoString()Returns a string representation of this record class.transform(float x, float y) floattx()Returns the value of thetxrecord component.floatty()Returns the value of thetyrecord component.
-
Constructor Details
-
Affine
public Affine(float a, float b, float c, float d, float tx, float ty) Creates an instance of aAffinerecord class.
-
-
Method Details
-
transform
-
inverse
-
inverse
-
multiply
-
determinant
public float determinant() -
finite
public boolean finite() -
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
-