Record Class ArmaturePoint
java.lang.Object
java.lang.Record
net.ixdarklord.coolcatcanvas.api.client.armature.ArmaturePoint
- Record Components:
joint- the index of the joint it moves withposition- where it is at rest, in model pixelsrotation- its own turn, in radians (Z, then Y, then X, as joints turn)
-
Constructor Summary
ConstructorsConstructorDescriptionArmaturePoint(String name, int joint, org.joml.Vector3fc position, org.joml.Vector3fc rotation) Creates an instance of aArmaturePointrecord 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.intjoint()Returns the value of thejointrecord component.name()Returns the value of thenamerecord component.org.joml.Vector3fcposition()Returns the value of thepositionrecord component.org.joml.Vector3fcrotation()Returns the value of therotationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ArmaturePoint
public ArmaturePoint(String name, int joint, org.joml.Vector3fc position, org.joml.Vector3fc rotation) Creates an instance of aArmaturePointrecord class.
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
joint
-
position
-
rotation
-