Click here to Skip to main content
15,920,708 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: cofused! what's wrong with the code? Pin
Plamen Petrov1-Jun-05 22:08
professionalPlamen Petrov1-Jun-05 22:08 
GeneralRe: cofused! what's wrong with the code? Pin
qqworm1-Jun-05 23:06
qqworm1-Jun-05 23:06 
AnswerRe: cofused! what's wrong with the code? Pin
David Crow2-Jun-05 2:27
David Crow2-Jun-05 2:27 
GeneralRe: cofused! what's wrong with the code? Pin
qqworm2-Jun-05 4:52
qqworm2-Jun-05 4:52 
GeneralCalculating an angle of a line Pin
NeverFall1-Jun-05 20:11
NeverFall1-Jun-05 20:11 
GeneralRe: Calculating an angle of a line(modified) Pin
namaskaaram1-Jun-05 20:46
namaskaaram1-Jun-05 20:46 
GeneralRe: Calculating an angle of a line(modified) Pin
NeverFall1-Jun-05 21:55
NeverFall1-Jun-05 21:55 
GeneralRe: Calculating an angle of a line(modified) Pin
namaskaaram1-Jun-05 23:06
namaskaaram1-Jun-05 23:06 
itz a mathematical concept....it will work anywhere.....
if u r using the screen cordinates,then u must first make it like the cartesian type(mind u it is already of cartesian type but a little different)
that is.....
in the cartesian type,the origin is designated as (0,0).
for the screen cordinates it is not so,SO u will have to make it like that by shifting the points accordingly(better known as mapping)

say.....
u have a window

//  (0,0)•- - - - - - - - - -+
//       |                   |
//       |        •(x/2,y/2) |
//       |                   |
//       +- - - - - - - - - -•(x,y)


where x,y define the length and width of the window respectively!and (x/2,y/2) happens to be the center of the window


u will have to map it to cartesian type.....

//(-x/2,y/2)•- - - - - - - - - -+
//          |                   |
//          |        •(0,0)     |
//          |                   |
//          +- - - - - - - - - -+(x/2,-x/2)



and voila....
u have the cartesian type..
now use the formula to get the angle.....by the way....are u doing vector related graphics?.....



cheerz.....Big Grin | :-D






"faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13
GeneralRe: Calculating an angle of a line Pin
super1-Jun-05 20:47
professionalsuper1-Jun-05 20:47 
GeneralRe: Calculating an angle of a line Pin
NeverFall1-Jun-05 22:11
NeverFall1-Jun-05 22:11 
GeneralCGdiObject::CreateStockObject Pin
Stlan1-Jun-05 19:26
Stlan1-Jun-05 19:26 
GeneralRe: CGdiObject::CreateStockObject Pin
super1-Jun-05 20:50
professionalsuper1-Jun-05 20:50 
GeneralRe: CGdiObject::CreateStockObject Pin
HumanOsc1-Jun-05 21:38
HumanOsc1-Jun-05 21:38 
GeneralRe: CGdiObject::CreateStockObject Pin
super1-Jun-05 21:46
professionalsuper1-Jun-05 21:46 
GeneralRe: CGdiObject::CreateStockObject Pin
Stlan1-Jun-05 22:09
Stlan1-Jun-05 22:09 
QuestionHow Can I add Random Mode? Pin
Keitaro211-Jun-05 19:06
Keitaro211-Jun-05 19:06 
AnswerRe: How Can I add Random Mode? Pin
Cedric Moonen1-Jun-05 21:17
Cedric Moonen1-Jun-05 21:17 
GeneralRe: How Can I add Random Mode? Pin
recoup_this2-Jun-05 2:24
recoup_this2-Jun-05 2:24 
Questionis it possible to know which disc inserted to dvd-r drive? Pin
baboguru1-Jun-05 18:59
baboguru1-Jun-05 18:59 
AnswerRe: is it possible to know which disc inserted to dvd-r drive? Pin
kakan2-Jun-05 3:24
professionalkakan2-Jun-05 3:24 
GeneralCOM Exe Link error Pin
VCSharp0071-Jun-05 18:07
VCSharp0071-Jun-05 18:07 
GeneralRe: COM Exe Link error Pin
Christian Graus1-Jun-05 18:16
protectorChristian Graus1-Jun-05 18:16 
GeneralRe: COM Exe Link error Pin
VCSharp0071-Jun-05 21:00
VCSharp0071-Jun-05 21:00 
GeneralRe: COM Exe Link error Pin
NormDroid1-Jun-05 23:23
professionalNormDroid1-Jun-05 23:23 
GeneralRe: COM Exe Link error Pin
VCSharp0072-Jun-05 3:13
VCSharp0072-Jun-05 3:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.