transforming 2D coords?
BlitzMax Forums/BlitzMax Programming/transforming 2D coords?
| ||
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? |
| ||
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 |
| ||
http://www.bettiesart.com/tc/blitz/ Look in the section "vectors" |
| ||
Didn't we do this already? |
| ||
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. |