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 aVertex
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.fromAssimp
(org.lwjgl.assimp.AIMesh assimpMesh) final int
hashCode()
Returns a hash code value for this object.org.joml.Vector3f
normal()
Returns the value of thenormal
record component.org.joml.Vector3f
pos()
Returns the value of thepos
record component.org.joml.Vector2f
Returns the value of thetextureCoordinates
record component.final String
toString()
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 aVertex
record class.- Parameters:
pos
- the value for thepos
record componentnormal
- the value for thenormal
record componenttextureCoordinates
- the value for thetextureCoordinates
record 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 thepos
record component.- Returns:
- the value of the
pos
record component
-
normal
public org.joml.Vector3f normal()Returns the value of thenormal
record component.- Returns:
- the value of the
normal
record component
-
textureCoordinates
public org.joml.Vector2f textureCoordinates()Returns the value of thetextureCoordinates
record component.- Returns:
- the value of the
textureCoordinates
record component
-