DoubleBuffer

Programerska zajednica
It is currently Tue Apr 24, 2018 7:44 am

Board index » Tehnička strana » Matematika & fizika

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Kut rotacije
PostPosted: Tue Jan 03, 2012 6:13 pm 
Offline
Sajentist on djuti!
User avatar

Joined: Tue Aug 26, 2008 9:35 pm
Posts: 2618
Mozak mi je zapeo, kako se računa kut rotacije nekog objekta u točki A(x,y) prema točki B(x, y). Ishodište je gore lijevo, B je uvijek na nižem Y od A (B je iznad A), i B može biti lijevo ili desno od A.


Top
 Profile  
 
 Post subject: Re: Kut rotacije
PostPosted: Tue Jan 03, 2012 6:44 pm 
Offline
Thunder Snail
User avatar

Joined: Thu Aug 13, 2009 3:06 pm
Posts: 1386
atan2
edit daje kut u radijanima,

edit 2
postavi si jos za x (x1-x2) i za y (y1-y2) tako da dobijes relativno rotiranje

edit 3
viewtopic.php?f=45&t=768 tu je sve :D


Top
 Profile  
 
 Post subject: Re: Kut rotacije
PostPosted: Tue Jan 03, 2012 6:49 pm 
Offline
Sajentist on djuti!
User avatar

Joined: Tue Aug 26, 2008 9:35 pm
Posts: 2618
Radio sam to. Problem je što sam smotan. Imam sliku ovako:
^
|

I onda dobijem glupost. Rotiram sliku ovako:
->
i radi :evil:

I onda shvatim da mi rotacija uopće ne treba...

U svakom slučaju, hvala.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

Board index » Tehnička strana » Matematika & fizika

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group