Show
Ignore:
Timestamp:
14/08/09 16:29:27 (3 years ago)
Author:
westram
Message:
  • spellchecked all (phew)
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/SECEDIT/SEC_layout.cxx

    r5675 r6141  
    6060 
    6161void SEC_segment::calculate_segment_size() { 
    62     alpha = ((get_region()->get_base_count()+1) / loop->get_circumferance()) * (2*M_PI); 
    63 } 
    64  
    65 void SEC_loop::compute_circumferance(void) {  // Calculates the circumferance of the loop by counting the bases of the loop 
     62    alpha = ((get_region()->get_base_count()+1) / loop->get_circumference()) * (2*M_PI); 
     63} 
     64 
     65void SEC_loop::compute_circumference(void) {  // Calculates the circumference of the loop by counting the bases of the loop 
    6666    SEC_root *sroot = get_root(); 
    6767    double    dbs   = sroot->display_params().distance_between_strands; 
    6868 
    69     Circumferance = 0; 
     69    Circumference = 0; 
    7070    for (SEC_segment_iterator seg(this); seg; ++seg) { 
    7171        SEC_region *reg = seg->get_region(); 
    7272        reg->update_base_count(sroot); 
    73         Circumferance += reg->get_base_count() + 1 + dbs; 
     73        Circumference += reg->get_base_count() + 1 + dbs; 
    7474    } 
    7575} 
    7676 
    7777void SEC_loop::compute_radius(void) { 
    78     compute_circumferance(); 
    79     setStandardSize(Circumferance / (2 * M_PI)); 
     78    compute_circumference(); 
     79    setStandardSize(Circumference / (2 * M_PI)); 
    8080} 
    8181 
     
    150150 
    151151    double dbs                   = get_root()->display_params().distance_between_strands; 
    152     double angle_between_strands = ( dbs / Circumferance) * (2*M_PI); //angle between two strands 
     152    double angle_between_strands = ( dbs / Circumference) * (2*M_PI); //angle between two strands 
    153153 
    154154    SEC_segment      *seg     = strand_away->get_next_segment();