getLinearVelocityFromWorldPointToOut method

void getLinearVelocityFromWorldPointToOut (Vector2 worldPoint, Vector2 out)

Implementation

void getLinearVelocityFromWorldPointToOut(Vector2 worldPoint, Vector2 out) {
  final double tempX = worldPoint.x - _sweep.c.x;
  final double tempY = worldPoint.y - _sweep.c.y;
  out.x = -_angularVelocity * tempY + _linearVelocity.x;
  out.y = _angularVelocity * tempX + _linearVelocity.y;
}