getTipWorldTranslation method

Vec2D getTipWorldTranslation(
  1. Vec2D vec
)

Implementation

Vec2D getTipWorldTranslation(Vec2D vec) {
  Mat2D transform = Mat2D();
  transform[4] = length;
  Mat2D.multiply(transform, worldTransform, transform);
  vec[0] = transform[4];
  vec[1] = transform[5];
  return vec;
}