Distributing elements

From TaskDepender
Jump to: navigation, search
(Design)
(Design)
 
Line 42: Line 42:
  
 
<math>X_i =x_i + w_i/2</math>
 
<math>X_i =x_i + w_i/2</math>
 
  
 
Since the algorithm assumes the elements being ordered by position of the left edges, this additional step must be performed before running the described algorithm.
 
Since the algorithm assumes the elements being ordered by position of the left edges, this additional step must be performed before running the described algorithm.
Line 54: Line 53:
 
* <math>S  = \displaystyle\frac{y_{max}-y_{min}-H}{N-1}</math>
 
* <math>S  = \displaystyle\frac{y_{max}-y_{min}-H}{N-1}</math>
 
* <math>H  = \displaystyle\sum_{i=1}^N h_i</math>
 
* <math>H  = \displaystyle\sum_{i=1}^N h_i</math>
 +
 +
and the position of an element given by:
 +
 +
<math>Y_i =y_i + h_i/2</math>
  
 
== Implementation ==
 
== Implementation ==

Latest revision as of 15:27, 14 November 2011