Click here to Skip to main content
15,898,035 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: Filling a cylinder or a tube Pin
Moreno Airoldi21-Mar-10 0:08
Moreno Airoldi21-Mar-10 0:08 
You can calculate the semi-major axis length. Have a look at:http://en.wikipedia.org/wiki/Semimajor_axis[^].

If you start from the centre of the ellipse (which in your example is the centre of your rectagle) and add this length, you get the point on the circumference of the ellipse where you can start (and end) drawing your vertical line.

Starting from there, you can adjust the angle to find the perfect spot for your verical lines. Smile | :)
2+2=5 for very large amounts of 2
(always loved that one hehe!)

GeneralRe: Filling a cylinder or a tube Pin
Valeriant21-Mar-10 4:46
Valeriant21-Mar-10 4:46 
GeneralRe: Filling a cylinder or a tube Pin
Moreno Airoldi21-Mar-10 8:33
Moreno Airoldi21-Mar-10 8:33 
GeneralRe: Filling a cylinder or a tube Pin
Valeriant21-Mar-10 16:36
Valeriant21-Mar-10 16:36 
GeneralRe: Filling a cylinder or a tube Pin
Moreno Airoldi25-Mar-10 2:06
Moreno Airoldi25-Mar-10 2:06 
GeneralRe: Filling a cylinder or a tube Pin
Valeriant25-Mar-10 19:34
Valeriant25-Mar-10 19:34 
GeneralRe: Filling a cylinder or a tube Pin
Moreno Airoldi25-Mar-10 22:24
Moreno Airoldi25-Mar-10 22:24 
GeneralRe: Filling a cylinder or a tube Pin
Moreno Airoldi2-Apr-10 23:02
Moreno Airoldi2-Apr-10 23:02 
GeneralRe: Filling a cylinder or a tube Pin
Valeriant6-Apr-10 2:21
Valeriant6-Apr-10 2:21 
GeneralRe: Filling a cylinder or a tube Pin
Moreno Airoldi6-Apr-10 4:11
Moreno Airoldi6-Apr-10 4:11 
GeneralRe: Filling a cylinder or a tube Pin
Andy_L_J25-Mar-10 19:50
Andy_L_J25-Mar-10 19:50 
GeneralRe: Filling a cylinder or a tube Pin
Moreno Airoldi25-Mar-10 22:27
Moreno Airoldi25-Mar-10 22:27 
QuestionFirewall Bypass via Compression Encoding Pin
Khalib Ismail19-Mar-10 16:05
Khalib Ismail19-Mar-10 16:05 
AnswerRe: Firewall Bypass via Compression Encoding Pin
Michel Godfroid1-Apr-10 6:12
Michel Godfroid1-Apr-10 6:12 
Question2D collision detection between a square and rectangle [modified] Pin
venomation8-Mar-10 13:10
venomation8-Mar-10 13:10 
AnswerRe: 2D collision detection between a square and rectangle Pin
Luc Pattyn8-Mar-10 13:42
sitebuilderLuc Pattyn8-Mar-10 13:42 
GeneralRe: 2D collision detection between a square and rectangle Pin
venomation8-Mar-10 13:53
venomation8-Mar-10 13:53 
GeneralRe: 2D collision detection between a square and rectangle Pin
venomation8-Mar-10 14:49
venomation8-Mar-10 14:49 
QuestionDesigning Parallel Algorithms Pin
ProtoBytes2-Mar-10 7:43
ProtoBytes2-Mar-10 7:43 
AnswerRe: Designing Parallel Algorithms Pin
Chris Losinger5-Mar-10 8:51
professionalChris Losinger5-Mar-10 8:51 
AnswerRe: Designing Parallel Algorithms [Modified - Spell Checked] [modified] Pin
ProtoBytes5-Mar-10 11:57
ProtoBytes5-Mar-10 11:57 
GeneralRe: Designing Parallel Algorithms [Modified - Spell Checked] Pin
Chris Losinger8-Mar-10 4:27
professionalChris Losinger8-Mar-10 4:27 
AnswerRe: Designing Parallel Algorithms Pin
Fatbuddha 119-Mar-10 2:24
Fatbuddha 119-Mar-10 2:24 
QuestionClosest Polygon Pin
Richard Andrew x6418-Feb-10 17:36
professionalRichard Andrew x6418-Feb-10 17:36 
AnswerRe: Closest Polygon Pin
Som Shekhar18-Feb-10 19:00
Som Shekhar18-Feb-10 19:00 

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.