Sign in to follow this  

local coordinate system

Recommended Posts

Hmm? What are you on about?
Is it like you have a large world, but map the screen coordinates (the world is larger than the screen) differently? If so, it's just a case of adding them. So;

(0,0) (10000,0)
| (4000,2000) |
| +--------+ |
| | | |
| | X | |
| |(80,100)| |
| +--------+ |
(0,8000) (10000,0)

If the local coordinate system is located within the global one and it's local (0,0) is at the global (4000,2000), a local (80,100) [the X] will be at (4000+80,2000+100) = (4080,2100). Naturally, this can work the other way too.

Share this post

Link to post
Share on other sites
thanks for your reply!!!.....that solved most of my problem, In my case, the pt. (80,100) would be given as part of global, so, it would be something like 4080, 2100 at the start;

what if the local coordinate system is in some angle rotation with the global; do I need to rotate and then do a translation or should do translation first and then do a rotation

| /\ |
| / \ |
| \ / |
| \/ |



Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this