Click here to Skip to main content
15,893,486 members
Home / Discussions / C#
   

C#

 
GeneralRe: assembly binding log file Pin
Heath Stewart6-May-04 6:36
protectorHeath Stewart6-May-04 6:36 
GeneralC# windows forms app and the theme manifest file Pin
Nish Nishant6-May-04 4:31
sitebuilderNish Nishant6-May-04 4:31 
GeneralRe: C# windows forms app and the theme manifest file Pin
Heath Stewart6-May-04 5:16
protectorHeath Stewart6-May-04 5:16 
GeneralRe: C# windows forms app and the theme manifest file Pin
Nish Nishant6-May-04 8:39
sitebuilderNish Nishant6-May-04 8:39 
QuestionHow to get a point within a circle Pin
Alan Zhao6-May-04 4:16
Alan Zhao6-May-04 4:16 
AnswerRe: How to get a point within a circle Pin
Broken God6-May-04 4:19
Broken God6-May-04 4:19 
AnswerRe: How to get a point within a circle Pin
Bill Dean6-May-04 4:57
Bill Dean6-May-04 4:57 
AnswerRe: How to get a point within a circle Pin
SimonS6-May-04 5:30
SimonS6-May-04 5:30 
Not sure if this is what you are looking for, but I'm using this to do something similar in a project currently:
public static PointF CircleLineIntersect(float startX, float startY, float angle, float circRadius)
{

double rad =0;

float xx =0;
float yy=0;
float nx=0;
float ny=0;

rad = 6.28 / 360;

//offset angle. 0 deg is top center
angle=angle+90;

double d = Convert.ToDouble(angle * rad);
xx =(float)( Math.Cos(d) * circRadius);
yy =(float)( Math.Sin(d) * circRadius);

nx = (float)(startX - xx);
ny = (float)( startY - yy);
return new PointF(nx,ny);

}

Cheers,
Simon

sig ::
"Don't try to be like Jackie. There is only one Jackie.... Study computers instead.", Jackie Chan on career choices.

article :: animation mechanics in SVG     blog:: brokenkeyboards
"It'll be a cold day in Hell when I do VB.NET...", Chris Maunder

AnswerRe: How to get a point within a circle Pin
Alan Zhao6-May-04 6:21
Alan Zhao6-May-04 6:21 
GeneralRe: How to get a point within a circle Pin
SimonS6-May-04 6:30
SimonS6-May-04 6:30 
GeneralRe: How to get a point within a circle Pin
Alan Zhao6-May-04 7:01
Alan Zhao6-May-04 7:01 
GeneralRe: How to get a point within a circle Pin
Bill Dean6-May-04 7:22
Bill Dean6-May-04 7:22 
GeneralRe: How to get a point within a circle Pin
Alan Zhao6-May-04 17:28
Alan Zhao6-May-04 17:28 
GeneralA question about SetForegroundWindow Pin
Member 9401256-May-04 4:15
Member 9401256-May-04 4:15 
GeneralRe: A question about SetForegroundWindow Pin
Stefan Troschuetz6-May-04 8:42
Stefan Troschuetz6-May-04 8:42 
GeneralSending e-mail from Windows Forms Pin
mikker_1236-May-04 4:02
mikker_1236-May-04 4:02 
GeneralRe: Sending e-mail from Windows Forms Pin
Heath Stewart6-May-04 4:18
protectorHeath Stewart6-May-04 4:18 
GeneralRe: Sending e-mail from Windows Forms Pin
mikker_1237-May-04 9:03
mikker_1237-May-04 9:03 
GeneralRe: Sending e-mail from Windows Forms Pin
Heath Stewart7-May-04 9:10
protectorHeath Stewart7-May-04 9:10 
GeneralJPEG TO BITMAP Pin
Member 6910895-May-04 14:43
Member 6910895-May-04 14:43 
GeneralRe: JPEG TO BITMAP Pin
mikker_1236-May-04 3:59
mikker_1236-May-04 3:59 
GeneralRe: JPEG TO BITMAP Pin
Member 6910896-May-04 16:35
Member 6910896-May-04 16:35 
GeneralRe: JPEG TO BITMAP Pin
mikker_1237-May-04 9:16
mikker_1237-May-04 9:16 
Generalmouse related problem Pin
Zaffar Kamran5-May-04 13:52
Zaffar Kamran5-May-04 13:52 
GeneralRe: mouse related problem Pin
Heath Stewart5-May-04 14:12
protectorHeath Stewart5-May-04 14:12 

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.