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

    Constructors
    Modifier
    Constructor
    Description
    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 a ScissorState record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Returns the value of the centerX record component.
    float
    Returns the value of the centerY record component.
    float
    Returns the value of the cornerBottomLeft record component.
    float
    Returns the value of the cornerBottomRight record component.
    float
    Returns the value of the cornerTopLeft record component.
    float
    Returns the value of the cornerTopRight record component.
    float
    Returns the value of the cosineOfAngle record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    float
    Returns the value of the halfHeight record component.
    float
    Returns the value of the halfWidth record component.
    final int
    Returns a hash code value for this object.
    float
    Returns the value of the sineOfAngle record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a ScissorState record class.
      Parameters:
      centerX - the value for the centerX record component
      centerY - the value for the centerY record component
      halfWidth - the value for the halfWidth record component
      halfHeight - the value for the halfHeight record component
      cosineOfAngle - the value for the cosineOfAngle record component
      sineOfAngle - the value for the sineOfAngle record component
      cornerTopLeft - the value for the cornerTopLeft record component
      cornerTopRight - the value for the cornerTopRight record component
      cornerBottomLeft - the value for the cornerBottomLeft record component
      cornerBottomRight - the value for the cornerBottomRight record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • centerX

      public float centerX()
      Returns the value of the centerX record component.
      Returns:
      the value of the centerX record component
    • centerY

      public float centerY()
      Returns the value of the centerY record component.
      Returns:
      the value of the centerY record component
    • halfWidth

      public float halfWidth()
      Returns the value of the halfWidth record component.
      Returns:
      the value of the halfWidth record component
    • halfHeight

      public float halfHeight()
      Returns the value of the halfHeight record component.
      Returns:
      the value of the halfHeight record component
    • cosineOfAngle

      public float cosineOfAngle()
      Returns the value of the cosineOfAngle record component.
      Returns:
      the value of the cosineOfAngle record component
    • sineOfAngle

      public float sineOfAngle()
      Returns the value of the sineOfAngle record component.
      Returns:
      the value of the sineOfAngle record component
    • cornerTopLeft

      public float cornerTopLeft()
      Returns the value of the cornerTopLeft record component.
      Returns:
      the value of the cornerTopLeft record component
    • cornerTopRight

      public float cornerTopRight()
      Returns the value of the cornerTopRight record component.
      Returns:
      the value of the cornerTopRight record component
    • cornerBottomLeft

      public float cornerBottomLeft()
      Returns the value of the cornerBottomLeft record component.
      Returns:
      the value of the cornerBottomLeft record component
    • cornerBottomRight

      public float cornerBottomRight()
      Returns the value of the cornerBottomRight record component.
      Returns:
      the value of the cornerBottomRight record component