Package net.frozenblock.lib.stencil.api
Record Class StencilRenderer.Triangle
java.lang.Object
java.lang.Record
net.frozenblock.lib.stencil.api.StencilRenderer.Triangle
- Enclosing class:
- StencilRenderer
@Environment(CLIENT)
public static record StencilRenderer.Triangle(org.joml.Vector3f p0, org.joml.Vector3f p1, org.joml.Vector3f p2)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTriangle(org.joml.Vector3f p0, org.joml.Vector3f p1, org.joml.Vector3f p2) Creates an instance of aTrianglerecord 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.org.joml.Vector3fp0()Returns the value of thep0record component.org.joml.Vector3fp1()Returns the value of thep1record component.org.joml.Vector3fp2()Returns the value of thep2record component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Triangle
public Triangle(org.joml.Vector3f p0, org.joml.Vector3f p1, org.joml.Vector3f p2) Creates an instance of aTrianglerecord class.- Parameters:
p0- the value for thep0record componentp1- the value for thep1record componentp2- the value for thep2record 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 withObjects::equals(Object,Object). -
p0
public org.joml.Vector3f p0()Returns the value of thep0record component.- Returns:
- the value of the
p0record component
-
p1
public org.joml.Vector3f p1()Returns the value of thep1record component.- Returns:
- the value of the
p1record component
-
p2
public org.joml.Vector3f p2()Returns the value of thep2record component.- Returns:
- the value of the
p2record component
-