Record Class MeshMaterialMatrix
java.lang.Object
java.lang.Record
com.marginallyclever.ro3.apps.viewport.renderpass.MeshMaterialMatrix
- Record Components:
meshInstance
- The mesh to render.material
- The material with which to render the mesh.matrix
- The transformation matrix to apply to the mesh.
public record MeshMaterialMatrix(MeshInstance meshInstance, Material material, javax.vecmath.Matrix4d matrix)
extends Record
A mesh and the material to render it with.
-
Constructor Summary
ConstructorDescriptionMeshMaterialMatrix
(MeshInstance meshInstance, Material material, javax.vecmath.Matrix4d matrix) Creates an instance of aMeshMaterialMatrix
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.material()
Returns the value of thematerial
record component.javax.vecmath.Matrix4d
matrix()
Returns the value of thematrix
record component.Returns the value of themeshInstance
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
MeshMaterialMatrix
public MeshMaterialMatrix(MeshInstance meshInstance, Material material, javax.vecmath.Matrix4d matrix) Creates an instance of aMeshMaterialMatrix
record class.- Parameters:
meshInstance
- the value for themeshInstance
record componentmaterial
- the value for thematerial
record componentmatrix
- the value for thematrix
record 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)
. -
meshInstance
Returns the value of themeshInstance
record component.- Returns:
- the value of the
meshInstance
record component
-
material
Returns the value of thematerial
record component.- Returns:
- the value of the
material
record component
-
matrix
public javax.vecmath.Matrix4d matrix()Returns the value of thematrix
record component.- Returns:
- the value of the
matrix
record component
-