Record Class Vertex
java.lang.Object
java.lang.Record
com.pixelmonmod.pixelmon.client.render.entity.renderers.assimp.Vertex
public record Vertex(org.joml.Vector3f pos, org.joml.Vector3f normal, org.joml.Vector2f textureCoordinates)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionVertex(org.joml.Vector3f pos, org.joml.Vector3f normal, org.joml.Vector2f textureCoordinates) Creates an instance of aVertexrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fromAssimp(org.lwjgl.assimp.AIMesh assimpMesh) final inthashCode()Returns a hash code value for this object.org.joml.Vector3fnormal()Returns the value of thenormalrecord component.org.joml.Vector3fpos()Returns the value of theposrecord component.org.joml.Vector2fReturns the value of thetextureCoordinatesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Vertex
public Vertex(org.joml.Vector3f pos, org.joml.Vector3f normal, org.joml.Vector2f textureCoordinates) Creates an instance of aVertexrecord class.- Parameters:
pos- the value for theposrecord componentnormal- the value for thenormalrecord componenttextureCoordinates- the value for thetextureCoordinatesrecord component
-
-
Method Details
-
fromAssimp
-
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). -
pos
public org.joml.Vector3f pos()Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
normal
public org.joml.Vector3f normal()Returns the value of thenormalrecord component.- Returns:
- the value of the
normalrecord component
-
textureCoordinates
public org.joml.Vector2f textureCoordinates()Returns the value of thetextureCoordinatesrecord component.- Returns:
- the value of the
textureCoordinatesrecord component
-