What is the fastest way to calculate a position ("D)
I have a starting point, a direction (degree in 360 system) and a length.
I'm using the sin /cos way to get the delta for x and y and add those values. Is there a "smarter" or faster way?
Printable View
What is the fastest way to calculate a position ("D)
I have a starting point, a direction (degree in 360 system) and a length.
I'm using the sin /cos way to get the delta for x and y and add those values. Is there a "smarter" or faster way?
temp = Direction * 0.017454
x = Length * Sin(temp)
y = Length * Cos(temp)
That's about as fast as it gets really.