Package dev.latvian.mods.klib.math
Record Class Face
java.lang.Object
java.lang.Record
dev.latvian.mods.klib.math.Face
public record Face(org.joml.Vector3fc a, org.joml.Vector3fc b, org.joml.Vector3fc c, org.joml.Vector3fc d, org.joml.Vector3fc n)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionFace(org.joml.Vector3fc a, org.joml.Vector3fc b, org.joml.Vector3fc c, org.joml.Vector3fc d, org.joml.Vector3fc n) Creates an instance of aFacerecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.joml.Vector3fca()Returns the value of thearecord component.org.joml.Vector3fcb()Returns the value of thebrecord component.org.joml.Vector3fcc()Returns the value of thecrecord component.org.joml.Vector3fcd()Returns the value of thedrecord component.final booleanIndicates whether some other object is "equal to" this one.voidforEachVertex(VertexCallback callback) final inthashCode()Returns a hash code value for this object.org.joml.Vector3fcn()Returns the value of thenrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Face
public Face(org.joml.Vector3fc a, org.joml.Vector3fc b, org.joml.Vector3fc c, org.joml.Vector3fc d, org.joml.Vector3fc n) Creates an instance of aFacerecord class.- Parameters:
a- the value for thearecord componentb- the value for thebrecord componentc- the value for thecrecord componentd- the value for thedrecord componentn- the value for thenrecord component
-
-
Method Details
-
forEachVertex
-
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). -
a
public org.joml.Vector3fc a()Returns the value of thearecord component.- Returns:
- the value of the
arecord component
-
b
public org.joml.Vector3fc b()Returns the value of thebrecord component.- Returns:
- the value of the
brecord component
-
c
public org.joml.Vector3fc c()Returns the value of thecrecord component.- Returns:
- the value of the
crecord component
-
d
public org.joml.Vector3fc d()Returns the value of thedrecord component.- Returns:
- the value of the
drecord component
-
n
public org.joml.Vector3fc n()Returns the value of thenrecord component.- Returns:
- the value of the
nrecord component
-