Record Class BiomechanicsSimulator.JointAngle
java.lang.Object
java.lang.Record
org.episteme.social.sports.BiomechanicsSimulator.JointAngle
- All Implemented Interfaces:
Serializable
- Enclosing class:
BiomechanicsSimulator
public static record BiomechanicsSimulator.JointAngle(String jointName, double flexion, double abduction, double rotation)
extends Record
implements Serializable
Represents a joint's angular orientation in 3D space.
- Since:
- 1.0
- Version:
- 1.1
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJointAngle(String jointName, double flexion, double abduction, double rotation) Creates an instance of aJointAnglerecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theabductionrecord component.final booleanIndicates whether some other object is "equal to" this one.doubleflexion()Returns the value of theflexionrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thejointNamerecord component.doublerotation()Returns the value of therotationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JointAngle
Creates an instance of aJointAnglerecord class.- Parameters:
jointName- the value for thejointNamerecord componentflexion- the value for theflexionrecord componentabduction- the value for theabductionrecord componentrotation- the value for therotationrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
jointName
Returns the value of thejointNamerecord component.- Returns:
- the value of the
jointNamerecord component
-
flexion
public double flexion()Returns the value of theflexionrecord component.- Returns:
- the value of the
flexionrecord component
-
abduction
public double abduction()Returns the value of theabductionrecord component.- Returns:
- the value of the
abductionrecord component
-
rotation
public double rotation()Returns the value of therotationrecord component.- Returns:
- the value of the
rotationrecord component
-