Logo Search packages:      
Sourcecode: inkscape version File versions

bool sp_spiral_is_invalid ( SPSpiral const *  spiral  ) 

Return true if spiral has properties that make it invalid.

Definition at line 624 of file sp-spiral.cpp.

References sp_spiral_get_polar().

{
      gdouble rad;

      sp_spiral_get_polar (spiral, 0.0, &rad, NULL);
      if (rad < 0.0 || rad > SP_HUGE) {
            g_print ("rad(t=0)=%g\n", rad);
            return TRUE;
      }
      sp_spiral_get_polar (spiral, 1.0, &rad, NULL);
      if (rad < 0.0 || rad > SP_HUGE) {
            g_print ("rad(t=1)=%g\n", rad);
            return TRUE;
      }
      return FALSE;
}


Generated by  Doxygen 1.6.0   Back to index