Click here to Skip to main content
15,913,610 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: Get the angle in radians of a shape made up with 2D points? Pin
Alan Balkany21-Jul-10 3:53
Alan Balkany21-Jul-10 3:53 
GeneralRe: Get the angle in radians of a shape made up with 2D points? Pin
venomation21-Jul-10 7:30
venomation21-Jul-10 7:30 
Questiondetect recursion during compilation Pin
invader8215-Jul-10 22:46
invader8215-Jul-10 22:46 
AnswerRe: detect recursion during compilation Pin
Alan Balkany16-Jul-10 4:04
Alan Balkany16-Jul-10 4:04 
AnswerRe: detect recursion during compilation Pin
Peter_in_278016-Jul-10 14:41
professionalPeter_in_278016-Jul-10 14:41 
AnswerRe: detect recursion during compilation Pin
T M Gray23-Jul-10 6:27
T M Gray23-Jul-10 6:27 
AnswerRe: detect recursion during compilation [OpenCL] Pin
ProtoBytes25-Jul-10 8:50
ProtoBytes25-Jul-10 8:50 
QuestionDistributing (different sized) objects Pin
Wjousts15-Jul-10 4:30
Wjousts15-Jul-10 4:30 
I'm laying out various objects (FrameworkElements) on a surface (Canvas) and I've implemented all the usual algorithms for aligning them vertically (top, bottom and middle) and horizontally (left, right and center). Now I want to implement a distribute function that will evenly distribute selected objects. Now this would be easy if the all the objects are the same size (find the left most and right most objects, divide the space between them by the number of objects and then set the positions of the objects), but it's a bit more complicated when objects potentially have different sizes.
My brain feels a little backed up right now, is there a well-known and easy algorithm for doing this?
AnswerRe: Distributing (different sized) objects Pin
Alan Balkany16-Jul-10 4:01
Alan Balkany16-Jul-10 4:01 
GeneralRe: Distributing (different sized) objects Pin
Wjousts16-Jul-10 4:29
Wjousts16-Jul-10 4:29 
GeneralRe: Distributing (different sized) objects Pin
Alan Balkany16-Jul-10 4:37
Alan Balkany16-Jul-10 4:37 
GeneralRe: Distributing (different sized) objects Pin
Wjousts16-Jul-10 5:40
Wjousts16-Jul-10 5:40 
GeneralRe: Distributing (different sized) objects Pin
Alan Balkany16-Jul-10 5:50
Alan Balkany16-Jul-10 5:50 
GeneralRe: Distributing (different sized) objects Pin
Wjousts20-Jul-10 3:31
Wjousts20-Jul-10 3:31 
GeneralRe: Distributing (different sized) objects Pin
Wjousts20-Jul-10 7:56
Wjousts20-Jul-10 7:56 
GeneralRe: Distributing (different sized) objects Pin
Alan Balkany20-Jul-10 8:01
Alan Balkany20-Jul-10 8:01 
AnswerRe: Distributing (different sized) objects Pin
Luc Pattyn16-Jul-10 5:54
sitebuilderLuc Pattyn16-Jul-10 5:54 
GeneralRe: Distributing (different sized) objects Pin
Alan Balkany16-Jul-10 6:06
Alan Balkany16-Jul-10 6:06 
GeneralRe: Distributing (different sized) objects Pin
Wjousts20-Jul-10 3:30
Wjousts20-Jul-10 3:30 
GeneralRe: Distributing (different sized) objects Pin
Luc Pattyn20-Jul-10 8:11
sitebuilderLuc Pattyn20-Jul-10 8:11 
GeneralRe: Distributing (different sized) objects Pin
Wjousts20-Jul-10 9:14
Wjousts20-Jul-10 9:14 
GeneralRe: Distributing (different sized) objects Pin
Luc Pattyn20-Jul-10 9:38
sitebuilderLuc Pattyn20-Jul-10 9:38 
QuestionGetting all combinations of N sets of objects iteratively Pin
gantww11-Jul-10 15:58
gantww11-Jul-10 15:58 
AnswerRe: Getting all combinations of N sets of objects iteratively Pin
Alan Balkany15-Jul-10 3:55
Alan Balkany15-Jul-10 3:55 
QuestionMy sorting algorithm Pin
AksharRoop6-Jul-10 4:53
AksharRoop6-Jul-10 4:53 

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.