daily pastebin goal
37%
SHARE
TWEET

Untitled

a guest Sep 14th, 2018 62 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. double e = GetEndAngle();
  2. double s = GetStartAngle();
  3. double d = e - s;
  4.  
  5. double x = 0.0;
  6. double y = 0.0;
  7. double offset = 0.0;
  8. if(d < 0.0) {
  9.     offset = PI;
  10. }
  11. x = (GetPosition().GetX() + std::cos(((s + e) / 2.0) + offset) * GetRadius());
  12. y = (GetPosition().GetY() + -std::sin(((s + e) / 2.0) + offset) * GetRadius());
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top