getPosition method

List<Vec3> getPosition()

get the scaled position of the joint

Implementation

List<Vec3> getPosition() {
  Vec3 p1 = Vec3().scale(anchorPoint1, scale);
  Vec3 p2 = Vec3().scale(anchorPoint2, scale);
  return [p1, p2];
}