computeWorldRotation method

double computeWorldRotation(
  1. Bone bone
)

Implementation

double computeWorldRotation(Bone bone) {
  final double cos = MathUtils.cosDeg(rotation);
  final double sin = MathUtils.sinDeg(rotation);
  final double x = cos * bone.a + sin * bone.b;
  final double y = cos * bone.c + sin * bone.d;
  return math.atan2(y, x) * MathUtils.radDeg;
}