transforming 2D coords?

BlitzMax Forums/BlitzMax Programming/transforming 2D coords?

Craig H. Nisbet(Posted 2007) [#1]
Hey guys,

I suck at math so I have to ask these kinds of basic things. how do I transform the rotation of a point in 2D relative to the position of another point in 2d?

So if I have point A at 10,10 and point B at 30,15. How can I make Point B rotate around Point A using point A as it's origin?


Derron(Posted 2007) [#2]
Just Imagine a Circle with size of Distance(PointA, PointB) with center at PointB).

Because a Point has no direction there is no need to rotate it.

Everything else is already in the code db ... have a look and you will find it (no I won't search for you).

If you later want to move it on other "round paths", have a look for bezier curves.


bye
MB


Pongo(Posted 2007) [#3]
http://www.bettiesart.com/tc/blitz/

Look in the section "vectors"


FlameDuck(Posted 2007) [#4]
Didn't we do this already?


big10p(Posted 2007) [#5]
I was just thinking the same thing, FlameDuck - although, he didn't reply to that thread so I for one have no intention of standing around talking to myself, again.