Skip to main content
2 of 4
changed name of function
Notabene
  • 6.1k
  • 1
  • 33
  • 40

You could try

public Vector2 Rotate(float angle, float distance, vector2 centre)
{
    return new Vector2(distance * Math.cos(angle), distance * Math.sin(angle)) + centre;
}

Keep in mind I'm not at a computer I could test this on but that should be in the right direction

Harold
  • 570
  • 4
  • 14