Advertisement
Guest User

Untitled

a guest
May 7th, 2019
151
0
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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement