Record Class VideoScreen.SimpleQuad

java.lang.Object
java.lang.Record
com.igrium.videolib.render.VideoScreen.SimpleQuad
Enclosing class:
VideoScreen

protected static record VideoScreen.SimpleQuad(float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1) extends Record
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    SimpleQuad(float x0, float y0, float x1, float y1)
     
    protected
    SimpleQuad(float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1)
    Creates an instance of a SimpleQuad record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    final String
    Returns a string representation of this record class.
    float
    u0()
    Returns the value of the u0 record component.
    float
    u1()
    Returns the value of the u1 record component.
    float
    v0()
    Returns the value of the v0 record component.
    float
    v1()
    Returns the value of the v1 record component.
    float
    x0()
    Returns the value of the x0 record component.
    float
    x1()
    Returns the value of the x1 record component.
    float
    y0()
    Returns the value of the y0 record component.
    float
    y1()
    Returns the value of the y1 record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SimpleQuad

      public SimpleQuad(float x0, float y0, float x1, float y1)
    • SimpleQuad

      protected SimpleQuad(float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1)
      Creates an instance of a SimpleQuad record class.
      Parameters:
      x0 - the value for the x0 record component
      y0 - the value for the y0 record component
      x1 - the value for the x1 record component
      y1 - the value for the y1 record component
      u0 - the value for the u0 record component
      v0 - the value for the v0 record component
      u1 - the value for the u1 record component
      v1 - the value for the v1 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.
    • x0

      public float x0()
      Returns the value of the x0 record component.
      Returns:
      the value of the x0 record component
    • y0

      public float y0()
      Returns the value of the y0 record component.
      Returns:
      the value of the y0 record component
    • x1

      public float x1()
      Returns the value of the x1 record component.
      Returns:
      the value of the x1 record component
    • y1

      public float y1()
      Returns the value of the y1 record component.
      Returns:
      the value of the y1 record component
    • u0

      public float u0()
      Returns the value of the u0 record component.
      Returns:
      the value of the u0 record component
    • v0

      public float v0()
      Returns the value of the v0 record component.
      Returns:
      the value of the v0 record component
    • u1

      public float u1()
      Returns the value of the u1 record component.
      Returns:
      the value of the u1 record component
    • v1

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