Skip to content

Instantly share code, notes, and snippets.

@Sander-Kastelein
Created October 29, 2015 09:40
Show Gist options
  • Save Sander-Kastelein/f7ff27a9b1a8e5599d40 to your computer and use it in GitHub Desktop.
Save Sander-Kastelein/f7ff27a9b1a8e5599d40 to your computer and use it in GitHub Desktop.
CodeForPoster
double frontRightX = frontMiddleX + (width / frontInverseWidth * Math.Cos(rot + Math.PI * .5));
double frontRightY = frontMiddleY + (width / frontInverseWidth * Math.Sin(rot + Math.PI * .5));
double frontLeftX = frontMiddleX + (width / frontInverseWidth * -Math.Cos(rot + Math.PI * .5));
double frontLeftY = frontMiddleY + (width / frontInverseWidth * -Math.Sin(rot + Math.PI * .5));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment