30.12.2014, 16:41
Well i have one question, why does people use pythagoras formula add all velocity axis and square root it when result will be the same as if you only add all floats?
Why does people use powers and sqroot together?
speed = floatsqroot((vx * vx) + (vy * vy) + (vz * vz)) * "magic number";
If the result will be the same if you only add all floats eachother?
Speed = floatadd(floatadd(floatabs(vx), floatabs(vy)), floatabs(vz)) * magic number
Why does people use powers and sqroot together?
speed = floatsqroot((vx * vx) + (vy * vy) + (vz * vz)) * "magic number";
If the result will be the same if you only add all floats eachother?
Speed = floatadd(floatadd(floatabs(vx), floatabs(vy)), floatabs(vz)) * magic number
