pyCGM2.Model.modelDecorator.chord#

pyCGM2.Model.modelDecorator.chord(offset: float, A1: ndarray, A2: ndarray, A3: ndarray, beta: float = 0.0, epsilon: float = 0.001) ndarray#

Calculates joint center using the ‘chord’ method. This function is obsolete and replaced by VCMJointCentre.

Parameters:
  • offset (float) – Offset value for the calculation.

  • A1 (np.ndarray) – 3D coordinates used in the calculation.

  • A2 (np.ndarray) – 3D coordinates used in the calculation.

  • A3 (np.ndarray) – 3D coordinates used in the calculation.

  • beta (float, optional) – Rotation angle offset. Defaults to 0.0.

  • epsilon (float, optional) – Small value to avoid division by zero. Defaults to 0.001.

Returns:

np.ndarray – The calculated joint center.