Click here to Skip to main content
15,891,976 members
Home / Discussions / Graphics
   

Graphics

 
GeneralRe: Map Wrapping Pin
Jim Warburton1-Mar-09 10:54
Jim Warburton1-Mar-09 10:54 
GeneralRe: Map Wrapping Pin
Luc Pattyn1-Mar-09 11:23
sitebuilderLuc Pattyn1-Mar-09 11:23 
GeneralRe: Map Wrapping Pin
Jim Warburton1-Mar-09 12:28
Jim Warburton1-Mar-09 12:28 
GeneralRe: Map Wrapping Pin
Luc Pattyn1-Mar-09 12:31
sitebuilderLuc Pattyn1-Mar-09 12:31 
QuestionA Question about programming with DirectX 9 Pin
Kast Bloodrider28-Feb-09 6:43
Kast Bloodrider28-Feb-09 6:43 
AnswerRe: A Question about programming with DirectX 9 Pin
Pete O'Hanlon1-Mar-09 9:59
mvePete O'Hanlon1-Mar-09 9:59 
Questiondraw a line inside a circle Pin
Deresen25-Feb-09 6:11
Deresen25-Feb-09 6:11 
GeneralRe: draw a line inside a circle Pin
Luc Pattyn25-Feb-09 8:39
sitebuilderLuc Pattyn25-Feb-09 8:39 
Hi,

a circle with radius r at the origin is represented by x*x + y*y = r*r

an ellips with big radius r at the origin is represented by x*x + a*a*y*y = r*r
where a (a factor larger than 1) is the ratio between the large radius (along the x-axis) and the small radius (along the y-axis).

So basically an ellips is a circle where you reduce y to y/a, and for each point (x,y) that would sit on the circle, the point (x, y/a) would sit at the corresponding location on the ellips.

To visualize: paint a circle on a sheet of paper, now tilt the sheet around a horizontal line: the circle becomes an ellips and all vertical dimensions shrink by the same factor.

Depending on what you want exactly, this might be all you need. When angles are involved, it gets a little bit more complex.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


GeneralRe: draw a line inside a circle Pin
Deresen25-Feb-09 9:08
Deresen25-Feb-09 9:08 
GeneralRe: draw a line inside a circle Pin
Luc Pattyn25-Feb-09 9:20
sitebuilderLuc Pattyn25-Feb-09 9:20 
GeneralRe: draw a line inside a circle Pin
Deresen25-Feb-09 11:34
Deresen25-Feb-09 11:34 
GeneralRe: draw a line inside a circle Pin
Luc Pattyn25-Feb-09 12:00
sitebuilderLuc Pattyn25-Feb-09 12:00 
GeneralRe: draw a line inside a circle Pin
Deresen25-Feb-09 20:52
Deresen25-Feb-09 20:52 
AnswerRe: draw a line inside a circle Pin
mohini19893-Mar-09 20:37
mohini19893-Mar-09 20:37 
NewsRe: draw a line inside a circle Pin
akirilov24-Apr-09 3:07
akirilov24-Apr-09 3:07 
GeneralRe: draw a line inside a circle Pin
akirilov24-Apr-09 3:17
akirilov24-Apr-09 3:17 
QuestionBITMAPINFO + Colour video Pin
jossion23-Feb-09 22:14
jossion23-Feb-09 22:14 
QuestionRe: BITMAPINFO + Colour video Pin
Mark Salsbery24-Feb-09 5:41
Mark Salsbery24-Feb-09 5:41 
AnswerRe: BITMAPINFO + Colour video Pin
jossion24-Feb-09 16:52
jossion24-Feb-09 16:52 
GeneralRe: BITMAPINFO + Colour video Pin
Mark Salsbery25-Feb-09 10:30
Mark Salsbery25-Feb-09 10:30 
GeneralRe: BITMAPINFO + Colour video Pin
jossion25-Feb-09 16:17
jossion25-Feb-09 16:17 
GeneralRe: BITMAPINFO + Colour video Pin
Mark Salsbery26-Feb-09 6:14
Mark Salsbery26-Feb-09 6:14 
GeneralRe: BITMAPINFO + Colour video Pin
akirilov24-Apr-09 3:25
akirilov24-Apr-09 3:25 
GeneralRe: BITMAPINFO + Colour video Pin
Mark Salsbery24-Apr-09 5:57
Mark Salsbery24-Apr-09 5:57 
Questioncan not draw polygon using gluTessCallback() function Pin
King Tran20-Feb-09 22:34
King Tran20-Feb-09 22:34 

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.