Click here to Skip to main content
15,900,906 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: DialogBar Pin
samira forooghi22-Jan-07 18:03
samira forooghi22-Jan-07 18:03 
QuestionRe: DialogBar Pin
prasad_som24-Jan-07 18:00
prasad_som24-Jan-07 18:00 
QuestionCMOS RAM Pin
pvn g21-Jan-07 22:43
pvn g21-Jan-07 22:43 
QuestionHow to read value in String table from dll Pin
Atul2321-Jan-07 22:35
Atul2321-Jan-07 22:35 
AnswerRe: How to read value in String table from dll Pin
Nibu babu thomas21-Jan-07 23:20
Nibu babu thomas21-Jan-07 23:20 
Questionactivex control not working in a dll Pin
aaaan21-Jan-07 22:09
aaaan21-Jan-07 22:09 
AnswerRe: activex control not working in a dll Pin
nutkase21-Jan-07 23:06
nutkase21-Jan-07 23:06 
QuestionRotation Pin
Waldermort21-Jan-07 21:45
Waldermort21-Jan-07 21:45 
I would ask this question on the algorithms/maths board, but I feel it is more appropriate here.

Lets say I have 2 points, { X1,Y1 } and { X2,Y2 }, I want to calculate the rotation of #2 around #1 given a number of degrees. What is the fasted possible way to do this in C++?

Here is my method, which I find to be too slow.

X2 = X1 * cosf(rotate) - Y1 * sinf(rotate);<br />
Y2 = X1 * sinf(rotate) + Y1 * cosf(rotate);

AnswerRe: Rotation Pin
softwaremonkey21-Jan-07 21:54
softwaremonkey21-Jan-07 21:54 
GeneralRe: Rotation Pin
nutkase21-Jan-07 23:11
nutkase21-Jan-07 23:11 
GeneralRe: Rotation Pin
Waldermort21-Jan-07 23:34
Waldermort21-Jan-07 23:34 
GeneralRe: Rotation Pin
nutkase22-Jan-07 1:15
nutkase22-Jan-07 1:15 
GeneralRe: Rotation Pin
softwaremonkey21-Jan-07 23:48
softwaremonkey21-Jan-07 23:48 
GeneralRe: Rotation Pin
Waldermort22-Jan-07 1:24
Waldermort22-Jan-07 1:24 
AnswerRe: Rotation Pin
Waldermort22-Jan-07 1:40
Waldermort22-Jan-07 1:40 
Questionlib file Pin
mike dano21-Jan-07 21:42
mike dano21-Jan-07 21:42 
AnswerRe: lib file Pin
Nibu babu thomas21-Jan-07 21:58
Nibu babu thomas21-Jan-07 21:58 
QuestionMutexes and sleeping threads Pin
softwaremonkey21-Jan-07 21:00
softwaremonkey21-Jan-07 21:00 
AnswerRe: Mutexes and sleeping threads Pin
Nibu babu thomas21-Jan-07 21:10
Nibu babu thomas21-Jan-07 21:10 
Questionhash_map in VC6 [modified] Pin
whatever@whatever.com21-Jan-07 20:22
whatever@whatever.com21-Jan-07 20:22 
AnswerRe: in VC6 Pin
Cedric Moonen21-Jan-07 20:24
Cedric Moonen21-Jan-07 20:24 
GeneralRe: in VC6 Pin
whatever@whatever.com21-Jan-07 20:47
whatever@whatever.com21-Jan-07 20:47 
GeneralRe: in VC6 Pin
Christian Graus21-Jan-07 23:43
protectorChristian Graus21-Jan-07 23:43 
QuestionHow to convert doc files to pdf files? Pin
asenthil_858521-Jan-07 20:00
asenthil_858521-Jan-07 20:00 
AnswerRe: How to convert doc files to pdf files? Pin
nutkase21-Jan-07 23:15
nutkase21-Jan-07 23:15 

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.