SHARE
TWEET

Untitled

a guest May 7th, 2019 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. stepx = sign(dx);
  2. stepy = sign(dy);
  3. stepz = sign(dz);
  4.  
  5. public inline function sign(x:Float) : Int{
  6.    return x < 0 ? -1:1;
  7. }
  8.  
  9. public inline function compSign(v:Vector4) : Vector4{
  10.    return new Vector4(sign(v.x),sign(v.y),sign(v.z),sign(v.w));
  11. }
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top