15.09.2012, 00:17
I wonder if math is use in scripting.
Because i saw on LuxAdmin while i'm reviewing it.
It seems like this.
on the stock function GetOnLine3D.
What it does means?.
Is Math really use in scripting some how?
Because i saw on LuxAdmin while i'm reviewing it.
It seems like this.
pawn Код:
RX = startX - endX;
RY = startY - endY;
RZ = startZ - endZ;
new Float:sqrt = floatsqroot((RX * RX) + (RY * RY) + (RZ * RZ));
if (sqrt < 0.01)
sqrt = 0.01;
RX = -length * (RX / sqrt) + startX;
RY = -length * (RY / sqrt) + startY;
RZ = -length * (RZ / sqrt) + startZ;
What it does means?.
Is Math really use in scripting some how?