Getting a Center point from 2 Co-ordinates
#10

Quote:
Originally Posted by Mauzen
Посмотреть сообщение
Here it is, isnt that hard:

pawn Код:
stock GetMiddlePos(Float:x_1, Float:y_1, Float:x_2, Float:y_2, &Float:x_mid, &Float:y_mid)
{
    x_mid = (x_1 + x_2) / 2;    // Arithmetic mean value is all you need
    y_mid = (y_1 + y_2) / 2;
}
Ill try this out and post my results (Edit this post), yes calgon, thats what i was looking for.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)