Click here to Skip to main content
15,918,742 members
Home / Discussions / C#
   

C#

 
GeneralNeedleman Wunsch Pin
NiteShade6-May-04 5:44
NiteShade6-May-04 5:44 
GeneralRe: Needleman Wunsch Pin
Jeff Varszegi6-May-04 6:10
professionalJeff Varszegi6-May-04 6:10 
GeneralRe: Needleman Wunsch Pin
NiteShade6-May-04 6:26
NiteShade6-May-04 6:26 
GeneralRe: Needleman Wunsch Pin
Jeff Varszegi6-May-04 6:36
professionalJeff Varszegi6-May-04 6:36 
GeneralSession object Pin
SJ_Phoenix6-May-04 5:42
SJ_Phoenix6-May-04 5:42 
GeneralRe: Session object Pin
Mazdak6-May-04 5:53
Mazdak6-May-04 5:53 
GeneralRe: Session object Pin
Heath Stewart6-May-04 8:06
protectorHeath Stewart6-May-04 8:06 
Generalassembly binding log file Pin
godzooky6-May-04 4:51
godzooky6-May-04 4:51 
GeneralRe: assembly binding log file Pin
Heath Stewart6-May-04 5:20
protectorHeath Stewart6-May-04 5:20 
GeneralRe: assembly binding log file Pin
godzooky6-May-04 5:24
godzooky6-May-04 5:24 
GeneralRe: assembly binding log file Pin
Heath Stewart6-May-04 5:34
protectorHeath Stewart6-May-04 5:34 
GeneralRe: assembly binding log file Pin
godzooky6-May-04 5:49
godzooky6-May-04 5:49 
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 

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.