public override Vector2 UpdateLocation() { long curTime = (long)(Clock.getClock().getTime() * _speedRatio); Vector2 newLocation = _locationEquation.GetLocation(curTime - StartTime); newLocation = VectorRotation.RotateVector(AngleOffset, newLocation); return(newLocation + Offset); }
public Vector2 GetLocation(long ticksElapsed) { Vector2 newLoc = equation.GetLocation(ticksElapsed); return(VectorRotation.RotateVector(angle, newLoc)); }