I have a math problem can anyone help me?
#6

You need to pass arrays to the function, which contain your co-ordinates (your "XYZ" (though with this function, there is no Z-axis evaluation)):
pawn Код:
new Float:PointA[2] =
{
  // X, Y of Point A. For Example:
  123.45, 678.90
},
  Float:PointB[2] =
{
  // X, Y of Point B. For Example:
  987.65, 432.10
};

new Float:angle = Angle2D(PointA, PointB);
OR

pawn Код:
new Float:angle = Angle2D({ 123.45, 678.90 }, { 987.65, 432.10 }); // PointA, PointB.
Just use that kind of syntax, and you're in business

~Cueball~
Reply


Messages In This Thread
I have a math problem can anyone help me? - by rensfromrpas - 03.05.2009, 10:34
Re: I have a math problem can anyone help me? - by Cueball - 03.05.2009, 10:49
Re: I have a math problem can anyone help me? - by rensfromrpas - 03.05.2009, 10:55
Re: I have a math problem can anyone help me? - by Cueball - 03.05.2009, 11:05
Re: I have a math problem can anyone help me? - by rensfromrpas - 03.05.2009, 13:08
Re: I have a math problem can anyone help me? - by Cueball - 04.05.2009, 10:13
Re: I have a math problem can anyone help me? - by yom - 04.05.2009, 10:50

Forum Jump:


Users browsing this thread: 1 Guest(s)