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

C#

 
GeneralRe: regex problem Pin
uglyeyes13-Jan-10 0:25
uglyeyes13-Jan-10 0:25 
GeneralRe: regex problem Pin
OriginalGriff13-Jan-10 0:30
mveOriginalGriff13-Jan-10 0:30 
GeneralRe: regex problem Pin
uglyeyes13-Jan-10 18:07
uglyeyes13-Jan-10 18:07 
GeneralRe: regex problem Pin
OriginalGriff13-Jan-10 21:37
mveOriginalGriff13-Jan-10 21:37 
AnswerRe: regex problem Pin
carlecomm13-Jan-10 19:19
carlecomm13-Jan-10 19:19 
GeneralRe: regex problem Pin
uglyeyes13-Jan-10 19:28
uglyeyes13-Jan-10 19:28 
AnswerRe: regex problem Pin
Ravi Sant14-Apr-11 1:47
Ravi Sant14-Apr-11 1:47 
QuestionTroubles Drawing a Rubik Cube to windows form. Pin
Are Jay12-Jan-10 16:56
Are Jay12-Jan-10 16:56 
First - The code used to create my version of a rubik cube was created by Peter Szilagyi; Arcus Applet - Rubik's Cube Simulator Applet. His code is not the problem it's the way I have implemented it into a windows form.

Second - It is entirely to hard to copy and paste code snippets of the code to show what and where it is doing the re-draw of the cube and it's cubie's so I have posted a .rar file with the entire window's project and I will reference methods within this project. RubikCube Project[^].

Basic layout of the application uses RubikCube : Control. Within the RubikCube I am overriding the mouse events to move the cube and on paint event to draw the cube.

In the Mouse Move Event I call:
rbx_mouse_X, rbx_mouse_Y are where the mouse was and _event.X, _event.Y is where the mouse current is.
axisRotX(Math.PI * (rbx_mouse_Y - _event.Y) / rbx_dimension.Height);
axisRotY(Math.PI * (_event.X - rbx_mouse_X) / rbx_dimension.Width);


axisRotX then calls:
_vector[rbx_Y] = _vector[rbx_Y] * Math.Cos(_angle) - _vector[rbx_Z] * Math.Sin(_angle);
_vector[rbx_Z] = _vector[rbx_Z] * Math.Cos(_angle) + _vector[rbx_Y] * Math.Sin(_angle);


and so on...

I the issue occurs when the mouse movements are quick the cube begins to decrease in size and distorts. I have a series of static values that the cubie's ( a sub class of Rubik Cube ) access during their paint method. I am not sure on the best way to architect the class layout to get the desired results but it seems the mouse move events are happening out of sequence and causing the cube to disfigure.

Any thoughts, constructive criticism, or suggested reference materials to help would be appreciated.

I'm listening but I only speak GEEK.

Questiongetting country code based on IP Pin
uglyeyes12-Jan-10 16:37
uglyeyes12-Jan-10 16:37 
AnswerRe: getting country code based on IP Pin
Dave Kreskowiak12-Jan-10 18:32
mveDave Kreskowiak12-Jan-10 18:32 
GeneralRe: getting country code based on IP Pin
uglyeyes12-Jan-10 19:10
uglyeyes12-Jan-10 19:10 
GeneralMessage Closed Pin
12-Jan-10 21:17
stancrm12-Jan-10 21:17 
GeneralRe: getting country code based on IP Pin
uglyeyes13-Jan-10 0:26
uglyeyes13-Jan-10 0:26 
GeneralRe: getting country code based on IP Pin
uglyeyes13-Jan-10 14:32
uglyeyes13-Jan-10 14:32 
Questioncall form problem? Pin
miss YY12-Jan-10 16:01
miss YY12-Jan-10 16:01 
AnswerRepost! Pin
DaveyM6912-Jan-10 22:21
professionalDaveyM6912-Jan-10 22:21 
AnswerCross Post Pin
<<Tash18>>13-Jan-10 0:50
<<Tash18>>13-Jan-10 0:50 
AnswerRe: call form problem? Pin
carlecomm13-Jan-10 19:24
carlecomm13-Jan-10 19:24 
QuestionWhat is the connection string for connecting your C# to a remote server ? Pin
jedongkendrick12-Jan-10 15:07
jedongkendrick12-Jan-10 15:07 
AnswerRe: What is the connection string for connecting your C# to a remote server ? Pin
Not Active12-Jan-10 15:43
mentorNot Active12-Jan-10 15:43 
AnswerRe: What is the connection string for connecting your C# to a remote server ? Pin
Abhinav S12-Jan-10 16:13
Abhinav S12-Jan-10 16:13 
AnswerRe: What is the connection string for connecting your C# to a remote server ? Pin
Dave Kreskowiak12-Jan-10 18:31
mveDave Kreskowiak12-Jan-10 18:31 
QuestionHow to use values from the datagrid to add values to a database Pin
jedongkendrick12-Jan-10 15:05
jedongkendrick12-Jan-10 15:05 
AnswerRe: How to use values from the datagrid to add values to a database Pin
Not Active12-Jan-10 15:46
mentorNot Active12-Jan-10 15:46 
AnswerRe: How to use values from the datagrid to add values to a database Pin
loyal ginger13-Jan-10 6:11
loyal ginger13-Jan-10 6:11 

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.