     
     
     clipAngle = computeViewAngle(dataPosition, dataPosition + alignDir);
+    
+    clipAngle = applyAlignOption(clipAngle);
+    
     axisAngle = computeViewAngle(dataPosition, dataPosition - axis);
     if (sin(axisAngle) < 0.0) axisAngle = -axisAngle;
     

      debug = 1.0;
    } else debug = 0.0;
    
    clipAngle = applyAlignOption(clipAngle);

  }    


}

float look_upwards(float a) {
  float b = positive_angle(a);
  return ((b > HALF_PI) && (b <= ONE_AND_HALF_PI)) ?
    b - PI :
    b;
}

float look_horizontal_or_vertical(float a, float ratio) {
