Package com.igrium.videolib.render
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
ConstructorsModifierConstructorDescriptionSimpleQuad
(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 aSimpleQuad
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.float
u0()
Returns the value of theu0
record component.float
u1()
Returns the value of theu1
record component.float
v0()
Returns the value of thev0
record component.float
v1()
Returns the value of thev1
record component.float
x0()
Returns the value of thex0
record component.float
x1()
Returns the value of thex1
record component.float
y0()
Returns the value of they0
record component.float
y1()
Returns the value of they1
record component.
-
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 aSimpleQuad
record class.- Parameters:
x0
- the value for thex0
record componenty0
- the value for they0
record componentx1
- the value for thex1
record componenty1
- the value for they1
record componentu0
- the value for theu0
record componentv0
- the value for thev0
record componentu1
- the value for theu1
record componentv1
- the value for thev1
record 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 '=='. -
x0
public float x0()Returns the value of thex0
record component.- Returns:
- the value of the
x0
record component
-
y0
public float y0()Returns the value of they0
record component.- Returns:
- the value of the
y0
record component
-
x1
public float x1()Returns the value of thex1
record component.- Returns:
- the value of the
x1
record component
-
y1
public float y1()Returns the value of they1
record component.- Returns:
- the value of the
y1
record component
-
u0
public float u0()Returns the value of theu0
record component.- Returns:
- the value of the
u0
record component
-
v0
public float v0()Returns the value of thev0
record component.- Returns:
- the value of the
v0
record component
-
u1
public float u1()Returns the value of theu1
record component.- Returns:
- the value of the
u1
record component
-
v1
public float v1()Returns the value of thev1
record component.- Returns:
- the value of the
v1
record component
-