Calcolate Area
#3

Use this to get the distances:
pawn Код:
stock GetDistance( Float:x1, Float:y1, Float:z1, Float:x2, Float:y2, Float:z2 )
{
    return floatround( floatsqroot( ( ( x1 - x2 ) * ( x1 - x2 ) ) + ( ( y1 - y2 ) * ( y1 - y2 ) ) + ( ( z1 - z2 ) * ( z1 - z2 ) ) ) ) );
}
And then use floatmul(float1, float2) to multiply the 2 distances and get the area.

Learn to use the search function of these forums or at least ******.
Reply


Messages In This Thread
Calcolate Area - by usersamp - 28.07.2013, 09:04
Re: Calcolate Area - by Spooky - 28.07.2013, 09:20
Re: Calcolate Area - by MellowHammer - 28.07.2013, 09:24
AW: Calcolate Area - by CutX - 28.07.2013, 09:29
Re: Calcolate Area - by usersamp - 28.07.2013, 09:53

Forum Jump:


Users browsing this thread: 1 Guest(s)