Click here to Skip to main content
15,892,059 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Using ShellExecute to open a web page as a child of Dialog Pin
David Crow1-Jun-11 3:25
David Crow1-Jun-11 3:25 
AnswerRe: Using ShellExecute to open a web page as a child of Dialog Pin
rp_suman2-Jun-11 1:09
rp_suman2-Jun-11 1:09 
Questionsome special charaters like while reading XML. Pin
janaswamy uday1-Jun-11 0:55
janaswamy uday1-Jun-11 0:55 
AnswerRe: some special charaters like while reading XML. Pin
barneyman1-Jun-11 1:57
barneyman1-Jun-11 1:57 
QuestionTwo questions about CDockablePane class management programmatically. [modified] Pin
SAMZCN31-May-11 23:31
SAMZCN31-May-11 23:31 
QuestionMFC COM Pin
Pranit Kothari31-May-11 21:36
Pranit Kothari31-May-11 21:36 
AnswerRe: MFC COM Pin
వేంకటనారాయణ(venkatmakam)31-May-11 21:41
వేంకటనారాయణ(venkatmakam)31-May-11 21:41 
GeneralRe: MFC COM Pin
ShilpiP31-May-11 22:56
ShilpiP31-May-11 22:56 
AnswerRe: MFC COM [modified] Pin
ShilpiP31-May-11 22:32
ShilpiP31-May-11 22:32 
GeneralRe: MFC COM [modified] Pin
వేంకటనారాయణ(venkatmakam)31-May-11 22:36
వేంకటనారాయణ(venkatmakam)31-May-11 22:36 
GeneralRe: MFC COM Pin
ShilpiP31-May-11 22:48
ShilpiP31-May-11 22:48 
GeneralRe: MFC COM Pin
వేంకటనారాయణ(venkatmakam)1-Jun-11 0:08
వేంకటనారాయణ(venkatmakam)1-Jun-11 0:08 
GeneralRe: MFC COM Pin
ShilpiP1-Jun-11 0:13
ShilpiP1-Jun-11 0:13 
AnswerRe: MFC COM Pin
ThatsAlok1-Jun-11 20:41
ThatsAlok1-Jun-11 20:41 
QuestionAngles Pin
Cyclone_S31-May-11 14:48
Cyclone_S31-May-11 14:48 
AnswerRe: Angles Pin
Luc Pattyn31-May-11 14:59
sitebuilderLuc Pattyn31-May-11 14:59 
Cyclone_S wrote:
I want the ball to bounce off the paddle at different angles depending on where the ball hits the paddle

That is pretty vague, and probably not according to normal physics.
Maybe what you want is: the outgoing angle equals the supplement of the incoming angle plus some delta, which is zero in the center and grows when the hit point is away from the center; so maybe calculate that distance and use it to add to or multiply the outgoing angle.


Cyclone_S wrote:
going in a circle

the equations for a circle in two dimensional space are:
(x - xc)^2 + (y - yc)^2 = r^2

or
x = xc + r * cos(a)
y = yc + r * sin(a)


where (x,y) is a point on the circle, (xc,yc) is the center, r the radius, a an angle in radians.
I cannot believe you would not know that. Look at the equations, they say the point(x,y) is at a fixed distance r from a fixed point (xc,yc).

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Please use <PRE> tags for code snippets, they improve readability.
CP Vanity has been updated to V2.3

modified on Tuesday, May 31, 2011 9:17 PM

QuestionRe: Angles Pin
David Crow31-May-11 15:39
David Crow31-May-11 15:39 
AnswerRe: Angles Pin
Luc Pattyn31-May-11 15:50
sitebuilderLuc Pattyn31-May-11 15:50 
GeneralRe: Angles Pin
Cyclone_S5-Jun-11 16:15
Cyclone_S5-Jun-11 16:15 
AnswerRe: Angles Pin
Luc Pattyn5-Jun-11 16:26
sitebuilderLuc Pattyn5-Jun-11 16:26 
GeneralRe: Angles Pin
Cyclone_S11-Jun-11 15:38
Cyclone_S11-Jun-11 15:38 
AnswerRe: Angles Pin
Luc Pattyn11-Jun-11 15:49
sitebuilderLuc Pattyn11-Jun-11 15:49 
GeneralRe: Angles Pin
Cyclone_S11-Jun-11 16:28
Cyclone_S11-Jun-11 16:28 
AnswerRe: Angles Pin
Stefan_Lang31-May-11 22:51
Stefan_Lang31-May-11 22:51 
QuestionGarbage Collector vs Reference Couter Pin
Pranit Kothari31-May-11 4:53
Pranit Kothari31-May-11 4:53 

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.