Record Class GuiTransform.AxisAligned
java.lang.Object
java.lang.Record
com.render.api.gui.effects.GuiTransform.AxisAligned
- Record Components:
scaleX- horizontal scalescaleY- vertical scaleoffsetX- horizontal translationoffsetY- vertical translation
- Enclosing class:
GuiTransform
public static record GuiTransform.AxisAligned(float scaleX, float scaleY, float offsetX, float offsetY)
extends Record
Resolved portable axis-aligned transform used by paint and input.
-
Constructor Summary
ConstructorsConstructorDescriptionAxisAligned(float scaleX, float scaleY, float offsetX, float offsetY) Creates an instance of aAxisAlignedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.inverse(float x, float y) floatoffsetX()Returns the value of theoffsetXrecord component.floatoffsetY()Returns the value of theoffsetYrecord component.floatscaleX()Returns the value of thescaleXrecord component.floatscaleY()Returns the value of thescaleYrecord component.final StringtoString()Returns a string representation of this record class.transform(float x, float y)
-
Constructor Details
-
AxisAligned
public AxisAligned(float scaleX, float scaleY, float offsetX, float offsetY) Creates an instance of aAxisAlignedrecord class.
-
-
Method Details
-
transform
-
inverse
-
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. -
scaleX
-
scaleY
-
offsetX
-
offsetY
-