Click here to Skip to main content
15,887,746 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: 15 puzzle algorithm in C or C++ Pin
Dave Kreskowiak7-Apr-10 17:42
mveDave Kreskowiak7-Apr-10 17:42 
GeneralRe: 15 puzzle algorithm in C or C++ Pin
Alan Balkany9-Apr-10 4:28
Alan Balkany9-Apr-10 4:28 
QuestionA simple algorithm request Pin
Michael J. Eber24-Mar-10 13:19
Michael J. Eber24-Mar-10 13:19 
AnswerRe: A simple algorithm request Pin
Amar Chaudhary24-Mar-10 15:25
Amar Chaudhary24-Mar-10 15:25 
AnswerRe: A simple algorithm request Pin
Dr.Walt Fair, PE24-Mar-10 15:29
professionalDr.Walt Fair, PE24-Mar-10 15:29 
AnswerRe: A simple algorithm request Pin
Luc Pattyn24-Mar-10 15:54
sitebuilderLuc Pattyn24-Mar-10 15:54 
QuestionFilling a cylinder or a tube Pin
Valeriant20-Mar-10 17:46
Valeriant20-Mar-10 17:46 
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 

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.