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
ConstructorsConstructorDescriptionMeshMaterialMatrix(MeshInstance meshInstance, Material material, javax.vecmath.Matrix4d matrix) Creates an instance of aMeshMaterialMatrixrecord 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.material()Returns the value of thematerialrecord component.javax.vecmath.Matrix4dmatrix()Returns the value of thematrixrecord component.Returns the value of themeshInstancerecord component.final StringtoString()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 aMeshMaterialMatrixrecord class.- Parameters:
meshInstance- the value for themeshInstancerecord componentmaterial- the value for thematerialrecord componentmatrix- the value for thematrixrecord 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). -
meshInstance
Returns the value of themeshInstancerecord component.- Returns:
- the value of the
meshInstancerecord component
-
material
-
matrix
-