Guest User

Untitled

a guest
Apr 22nd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. public function getCenter( dst : Vec2f ) : Void {
  2. var result = p0.clone();
  3.  
  4. var tmpVec = ( p1 - p0 ) * 0.5;
  5. result += tmpVec;
  6.  
  7. tmpVec.rotate90();
  8. tmpVec *= 1 / tangent(curveInRadians/2);
  9.  
  10. result += tmpVec;
  11. return result;
  12. }
Add Comment
Please, Sign In to add comment