Click here to Skip to main content
15,899,474 members
Home / Discussions / C#
   

C#

 
GeneralRe: Original Pin
MasterSharp19-Nov-07 12:30
MasterSharp19-Nov-07 12:30 
AnswerRe: Original Pin
Colin Angus Mackay19-Nov-07 12:30
Colin Angus Mackay19-Nov-07 12:30 
GeneralRe: Original Pin
MasterSharp19-Nov-07 12:48
MasterSharp19-Nov-07 12:48 
AnswerRe: Original Pin
Expert Coming19-Nov-07 14:25
Expert Coming19-Nov-07 14:25 
QuestionDecleration Problem Pin
ytubis19-Nov-07 10:32
ytubis19-Nov-07 10:32 
AnswerRe: Decleration Problem Pin
Skippums19-Nov-07 10:36
Skippums19-Nov-07 10:36 
QuestionMath Question Pin
Sautin.net19-Nov-07 10:13
Sautin.net19-Nov-07 10:13 
AnswerRe: Math Question Pin
Skippums19-Nov-07 10:32
Skippums19-Nov-07 10:32 
Let sp be StartPoint and ep be EndPoint...
1. Calculate the current length
float len = sqrt(exp(sp.X - ep.X, 2) + exp(sp.Y - ep.Y, 2));
2. Calculate the ratio of the new length to the old length
float rat = newLen / len;
3. Using the rule that scaling a triangle maintains length ratios...
Point resultEp = new Point(rat * (ep.X - sp.X) + sp.X, rat * (ep.Y - sp.Y) + sp.Y);

then the line from sp to resultEp will have length newLen.


Jeff
AnswerRe: Math Question Pin
Pete O'Hanlon19-Nov-07 10:36
mvePete O'Hanlon19-Nov-07 10:36 
AnswerRe: Math Question Pin
Ravi Bhavnani19-Nov-07 10:40
professionalRavi Bhavnani19-Nov-07 10:40 
Questionhow to create a fax manager program! Pin
Amin Diary19-Nov-07 9:01
Amin Diary19-Nov-07 9:01 
AnswerRe: how to create a fax manager program! Pin
Judah Gabriel Himango19-Nov-07 9:32
sponsorJudah Gabriel Himango19-Nov-07 9:32 
QuestionDynamic plugin handling? Pin
shuqi19-Nov-07 8:51
shuqi19-Nov-07 8:51 
AnswerRe: Dynamic plugin handling? Pin
Kristian Sixhøj19-Nov-07 9:03
Kristian Sixhøj19-Nov-07 9:03 
GeneralRe: Dynamic plugin handling? Pin
shuqi19-Nov-07 9:10
shuqi19-Nov-07 9:10 
GeneralRe: Dynamic plugin handling? Pin
Kristian Sixhøj19-Nov-07 9:18
Kristian Sixhøj19-Nov-07 9:18 
Questionplz help - AVI File Format Specification Pin
Mahmoud El-Shaffie19-Nov-07 8:17
Mahmoud El-Shaffie19-Nov-07 8:17 
AnswerRe: plz help - AVI File Format Specification Pin
Anthony Mushrow19-Nov-07 10:07
professionalAnthony Mushrow19-Nov-07 10:07 
QuestionInsert Data in to DB Table after verification [modified] Pin
Skanless19-Nov-07 8:00
Skanless19-Nov-07 8:00 
AnswerRe: Insert Data in to DB Table after verification Pin
pmarfleet19-Nov-07 8:48
pmarfleet19-Nov-07 8:48 
GeneralRe: Insert Data in to DB Table after verification Pin
Skanless19-Nov-07 11:53
Skanless19-Nov-07 11:53 
GeneralRe: Insert Data in to DB Table after verification Pin
pmarfleet19-Nov-07 12:13
pmarfleet19-Nov-07 12:13 
GeneralRe: Insert Data in to DB Table after verification Pin
Skanless20-Nov-07 6:17
Skanless20-Nov-07 6:17 
Questionproblems with FileSystemWatcher Pin
stephan_00719-Nov-07 6:49
stephan_00719-Nov-07 6:49 
AnswerRe: problems with FileSystemWatcher Pin
Giorgi Dalakishvili19-Nov-07 7:50
mentorGiorgi Dalakishvili19-Nov-07 7:50 

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.