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 SummaryConstructorsConstructorDescriptionVertex(org.joml.Vector3f pos, org.joml.Vector3f normal, org.joml.Vector2f textureCoordinates) Creates an instance of aVertexrecord class.
- 
Method SummaryModifier 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- 
Vertexpublic Vertex(org.joml.Vector3f pos, org.joml.Vector3f normal, org.joml.Vector2f textureCoordinates) Creates an instance of aVertexrecord class.- Parameters:
- pos- the value for the- posrecord component
- normal- the value for the- normalrecord component
- textureCoordinates- the value for the- textureCoordinatesrecord component
 
 
- 
- 
Method Details- 
fromAssimp
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
pospublic org.joml.Vector3f pos()Returns the value of theposrecord component.- Returns:
- the value of the posrecord component
 
- 
normalpublic org.joml.Vector3f normal()Returns the value of thenormalrecord component.- Returns:
- the value of the normalrecord component
 
- 
textureCoordinatespublic org.joml.Vector2f textureCoordinates()Returns the value of thetextureCoordinatesrecord component.- Returns:
- the value of the textureCoordinatesrecord component
 
 
-