Click here to Skip to main content
15,913,722 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDialog toolbar and Controls toolbar Pin
Rajveer11-Jan-02 5:06
Rajveer11-Jan-02 5:06 
GeneralRe: Dialog toolbar and Controls toolbar Pin
Michael P Butler11-Jan-02 5:17
Michael P Butler11-Jan-02 5:17 
GeneralExtendable Dialog Box Pin
11-Jan-02 4:47
suss11-Jan-02 4:47 
GeneralRe: Extendable Dialog Box Pin
User 665811-Jan-02 5:25
User 665811-Jan-02 5:25 
GeneralRe: Extendable Dialog Box Pin
Ernest Laurentin11-Jan-02 5:37
Ernest Laurentin11-Jan-02 5:37 
GeneralRe: Extendable Dialog Box Pin
Nish Nishant11-Jan-02 13:45
sitebuilderNish Nishant11-Jan-02 13:45 
GeneralAdding sound events Pin
11-Jan-02 4:24
suss11-Jan-02 4:24 
GeneralMathematical Shearing Pin
Alan Chambers11-Jan-02 4:16
Alan Chambers11-Jan-02 4:16 
Hi all, does anyone have a function to shear a list of coordinates? I have four coordinates which make up a square, and would like to shear either it along the x or y axis. I need an equation that re-calculates each coordinate so that :

current-x-coordinate = ????
current-y-coordinate = ????

the results of this equation should produce results similar (roughly) to this example when used with the appropriate shear factor (this is a graphics project so 0,0 is the top-left):
SQUARE
50,50
50,100
100,100
100,50

SHEARED RESULT
75,50
100,50
100,100
125,50

Any help as to where I may get a rough answer would be wicked, thanks for reading this far though. I have tried the articles on this site, but I can't find the actual mathematics that I need to insert into my function.

Many thanks,
Alan.Confused | :confused:

"When I left you I was but the learner, now I am the master" - Darth Vader
GeneralRe: Mathematical Shearing Pin
Joaquín M López Muñoz11-Jan-02 5:21
Joaquín M López Muñoz11-Jan-02 5:21 
GeneralRe: Mathematical Shearing Pin
Alan Chambers11-Jan-02 8:47
Alan Chambers11-Jan-02 8:47 
GeneralRe: Mathematical Shearing Pin
Joaquín M López Muñoz12-Jan-02 6:53
Joaquín M López Muñoz12-Jan-02 6:53 
GeneralSTLport Pin
Senkwe Chanda11-Jan-02 3:55
Senkwe Chanda11-Jan-02 3:55 
GeneralRe: STLport Pin
Christian Graus11-Jan-02 10:25
protectorChristian Graus11-Jan-02 10:25 
GeneralA Real Rectangle for Print! Pin
Eugene Pustovoyt11-Jan-02 2:10
Eugene Pustovoyt11-Jan-02 2:10 
GeneralControl works properly in VB, but not in VC++ Pin
sanskypotov11-Jan-02 0:47
sanskypotov11-Jan-02 0:47 
GeneralRe: Control works properly in VB, but not in VC++ Pin
Bill Wilson11-Jan-02 6:55
Bill Wilson11-Jan-02 6:55 
GeneralWriting to file Pin
patty11-Jan-02 0:38
patty11-Jan-02 0:38 
GeneralRe: Writing to file Pin
Christian Graus11-Jan-02 1:11
protectorChristian Graus11-Jan-02 1:11 
GeneralRe: Writing to file Pin
Roger Allen11-Jan-02 3:07
Roger Allen11-Jan-02 3:07 
GeneralRe: Writing to file Pin
11-Jan-02 3:38
suss11-Jan-02 3:38 
GeneralRe: Writing to file Pin
Nish Nishant11-Jan-02 3:57
sitebuilderNish Nishant11-Jan-02 3:57 
GeneralRe: Writing to file Pin
Nish Nishant11-Jan-02 3:41
sitebuilderNish Nishant11-Jan-02 3:41 
GeneralRe: Writing to file Pin
11-Jan-02 1:57
suss11-Jan-02 1:57 
GeneralIID_IContextMenu: Open With in Windows ME/2000/XP Pin
Ana Lucia11-Jan-02 0:23
Ana Lucia11-Jan-02 0:23 
GeneralRe: IID_IContextMenu: Open With in Windows ME/2000/XP Pin
Michael Dunn11-Jan-02 7:40
sitebuilderMichael Dunn11-Jan-02 7:40 

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.