Record Class Vertex
java.lang.Object
java.lang.Record
de.luckymcdev.foundryengine.client.render.obj.Vertex
public record Vertex(org.joml.Vector3f position, org.joml.Vector3f normal, org.joml.Vector2f uv)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionVertex(org.joml.Vector3f position, org.joml.Vector3f normal, org.joml.Vector2f uv) Creates an instance of aVertexrecord 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.Vector3fnormal()Returns the value of thenormalrecord component.org.joml.Vector3fposition()Returns the value of thepositionrecord component.final StringtoString()Returns a string representation of this record class.org.joml.Vector2fuv()Returns the value of theuvrecord component.
-
Constructor Details
-
Vertex
public Vertex(org.joml.Vector3f position, org.joml.Vector3f normal, org.joml.Vector2f uv) Creates an instance of aVertexrecord class.- Parameters:
position- the value for thepositionrecord componentnormal- the value for thenormalrecord componentuv- the value for theuvrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
position
public org.joml.Vector3f position()Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
normal
public org.joml.Vector3f normal()Returns the value of thenormalrecord component.- Returns:
- the value of the
normalrecord component
-
uv
public org.joml.Vector2f uv()Returns the value of theuvrecord component.- Returns:
- the value of the
uvrecord component
-