Click here to Skip to main content
15,891,033 members
Home / Discussions / C#
   

C#

 
AnswerRe: elastic collision and impulse methode? Pin
OriginalGriff2-Jul-15 21:34
mveOriginalGriff2-Jul-15 21:34 
QuestionGetting hashtags from a string Pin
Farhad Eft2-Jul-15 8:26
Farhad Eft2-Jul-15 8:26 
AnswerRe: Getting hashtags from a string Pin
OriginalGriff2-Jul-15 8:46
mveOriginalGriff2-Jul-15 8:46 
SuggestionRe: Getting hashtags from a string Pin
Richard Deeming2-Jul-15 9:13
mveRichard Deeming2-Jul-15 9:13 
GeneralRe: Getting hashtags from a string Pin
OriginalGriff2-Jul-15 9:21
mveOriginalGriff2-Jul-15 9:21 
GeneralRe: Getting hashtags from a string Pin
Farhad Eft2-Jul-15 10:02
Farhad Eft2-Jul-15 10:02 
GeneralRe: Getting hashtags from a string Pin
OriginalGriff2-Jul-15 10:17
mveOriginalGriff2-Jul-15 10:17 
QuestionC# How about coordinates and matrix Pin
Siao Da2-Jul-15 2:51
Siao Da2-Jul-15 2:51 
I have written a 3 by 3 matrix program where I assume that the matrix represents the circle. It is able to tell the coordinates of the axes as well as the origin.
For example a 3 by 3 matrix, it will display these results which are what I want. The program will find the origin automatically by taking the 3 minus by 1 then divide by 2.
Index=[0,0](x,y)=(-38,38)
Index=[0,1](x,y)=(0,38)
Index=[0,2](x,y)=(38,38)

Index=[1,0](x,y)=(-38,0)
Index=[1,1](x,y)=(0,0)
Index=[1,2](x,y)=(38,0)

Index=[2,0](x,y)=(-38,-38)
Index=[2,1](x,y)=(0,-38)
Index=[2,2](x,y)=(-38,-38)

However, when I want to do a 4 by 4 matrix and so on, the result of the coordinates does not match with my calculation. Is there any formula for this?
1 unit=38
4 by 4 matrix would be


Index=[0,0] (x,y)=(-76,76)
Index=[0,1] (x,y)=(-38,76))
Index=[0,2] (x,y)=(0,76)
Index=[0,3](x,y)=(38,76)

Index=[1,0] (x,y)=(-76,38)
Index=[1,1] (x,y)=(-38,38)
Index=[1,2] (x,y)=(0,38)
Index=[1,3] (x,y)=(38,38)


Index=[2,0] (x,y)=(-76,0)
Index=[2,1] (x,y)=(-38,0)
Index=[2,2] (x,y)=(0,0)
Index=[2,3] (x,y)=(38,0)


Index=[3,0] (x,y)=(-76,-38)
Index=[3,1] (x,y)=(-38,-38)
Index=[3,2] (x,y)=(0,-38)
Index=[3,3] (x,y)=(38,38)

Tomorrow, I will post my code because my file is broken and I can only retrieve from my workplace. Please help me.
AnswerRe: C# How about coordinates and matrix Pin
Traitorous2-Jul-15 22:45
Traitorous2-Jul-15 22:45 
AnswerRe: C# How about coordinates and matrix Pin
Eddy Vluggen3-Jul-15 3:11
professionalEddy Vluggen3-Jul-15 3:11 
Questionoverriding equals Pin
Gilbert Consellado1-Jul-15 18:52
professionalGilbert Consellado1-Jul-15 18:52 
AnswerRe: overriding equals Pin
Brisingr Aerowing1-Jul-15 19:23
professionalBrisingr Aerowing1-Jul-15 19:23 
GeneralRe: overriding equals Pin
Gilbert Consellado1-Jul-15 19:41
professionalGilbert Consellado1-Jul-15 19:41 
GeneralRe: overriding equals Pin
F-ES Sitecore2-Jul-15 0:20
professionalF-ES Sitecore2-Jul-15 0:20 
SuggestionRe: overriding equals Pin
Richard Deeming2-Jul-15 2:06
mveRichard Deeming2-Jul-15 2:06 
GeneralRe: overriding equals Pin
Gilbert Consellado2-Jul-15 3:27
professionalGilbert Consellado2-Jul-15 3:27 
AnswerRe: overriding equals Pin
Brisingr Aerowing1-Jul-15 19:25
professionalBrisingr Aerowing1-Jul-15 19:25 
QuestionExecuting Powershell command from C# Pin
sudhi1641-Jul-15 4:15
sudhi1641-Jul-15 4:15 
AnswerRe: Executing Powershell command from C# Pin
phil.o1-Jul-15 5:57
professionalphil.o1-Jul-15 5:57 
QuestionDirectoryInfo.GetAccessControl() throws InvalidOperationException "Method failed with unexpected error code 1" Pin
Gerd Krause1-Jul-15 3:08
Gerd Krause1-Jul-15 3:08 
SuggestionRe: DirectoryInfo.GetAccessControl() throws InvalidOperationException "Method failed with unexpected error code 1" Pin
Richard Deeming1-Jul-15 7:46
mveRichard Deeming1-Jul-15 7:46 
GeneralRe: DirectoryInfo.GetAccessControl() throws InvalidOperationException "Method failed with unexpected error code 1" Pin
Gerd Krause1-Jul-15 23:21
Gerd Krause1-Jul-15 23:21 
QuestionHow i can pause/resume a thread in window form application ? Pin
Husnul karim30-Jun-15 20:59
Husnul karim30-Jun-15 20:59 
AnswerRe: How i can pause/resume a thread in window form application ? Pin
Pete O'Hanlon30-Jun-15 23:36
mvePete O'Hanlon30-Jun-15 23:36 
QuestionHow to check if pieces are ordered Pin
Aleksandar Jeftic30-Jun-15 11:22
Aleksandar Jeftic30-Jun-15 11:22 

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.