Record Class GuiRender.ScissorState
java.lang.Object
java.lang.Record
top.untold.frostlumen.core.render.GuiRender.ScissorState
- Enclosing class:
GuiRender
protected static record GuiRender.ScissorState(float centerX, float centerY, float halfWidth, float halfHeight, float cosineOfAngle, float sineOfAngle, float cornerTopLeft, float cornerTopRight, float cornerBottomLeft, float cornerBottomRight)
extends Record
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedScissorState(float centerX, float centerY, float halfWidth, float halfHeight, float cosineOfAngle, float sineOfAngle, float cornerTopLeft, float cornerTopRight, float cornerBottomLeft, float cornerBottomRight) Creates an instance of aScissorStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatcenterX()Returns the value of thecenterXrecord component.floatcenterY()Returns the value of thecenterYrecord component.floatReturns the value of thecornerBottomLeftrecord component.floatReturns the value of thecornerBottomRightrecord component.floatReturns the value of thecornerTopLeftrecord component.floatReturns the value of thecornerTopRightrecord component.floatReturns the value of thecosineOfAnglerecord component.final booleanIndicates whether some other object is "equal to" this one.floatReturns the value of thehalfHeightrecord component.floatReturns the value of thehalfWidthrecord component.final inthashCode()Returns a hash code value for this object.floatReturns the value of thesineOfAnglerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScissorState
protected ScissorState(float centerX, float centerY, float halfWidth, float halfHeight, float cosineOfAngle, float sineOfAngle, float cornerTopLeft, float cornerTopRight, float cornerBottomLeft, float cornerBottomRight) Creates an instance of aScissorStaterecord class.- Parameters:
centerX- the value for thecenterXrecord componentcenterY- the value for thecenterYrecord componenthalfWidth- the value for thehalfWidthrecord componenthalfHeight- the value for thehalfHeightrecord componentcosineOfAngle- the value for thecosineOfAnglerecord componentsineOfAngle- the value for thesineOfAnglerecord componentcornerTopLeft- the value for thecornerTopLeftrecord componentcornerTopRight- the value for thecornerTopRightrecord componentcornerBottomLeft- the value for thecornerBottomLeftrecord componentcornerBottomRight- the value for thecornerBottomRightrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
centerX
public float centerX()Returns the value of thecenterXrecord component.- Returns:
- the value of the
centerXrecord component
-
centerY
public float centerY()Returns the value of thecenterYrecord component.- Returns:
- the value of the
centerYrecord component
-
halfWidth
public float halfWidth()Returns the value of thehalfWidthrecord component.- Returns:
- the value of the
halfWidthrecord component
-
halfHeight
public float halfHeight()Returns the value of thehalfHeightrecord component.- Returns:
- the value of the
halfHeightrecord component
-
cosineOfAngle
public float cosineOfAngle()Returns the value of thecosineOfAnglerecord component.- Returns:
- the value of the
cosineOfAnglerecord component
-
sineOfAngle
public float sineOfAngle()Returns the value of thesineOfAnglerecord component.- Returns:
- the value of the
sineOfAnglerecord component
-
cornerTopLeft
public float cornerTopLeft()Returns the value of thecornerTopLeftrecord component.- Returns:
- the value of the
cornerTopLeftrecord component
-
cornerTopRight
public float cornerTopRight()Returns the value of thecornerTopRightrecord component.- Returns:
- the value of the
cornerTopRightrecord component
-
cornerBottomLeft
public float cornerBottomLeft()Returns the value of thecornerBottomLeftrecord component.- Returns:
- the value of the
cornerBottomLeftrecord component
-
cornerBottomRight
public float cornerBottomRight()Returns the value of thecornerBottomRightrecord component.- Returns:
- the value of the
cornerBottomRightrecord component
-