mod/maxgui.mod/fltkmaxgui.mod/src/fl_vertex.cxx
void fl_rotate(double d) {
  if (d) {
    double s, c;
    if (d == 0) {s = 0; c = 1;}
    else if (d == 90) {s = 1; c = 0;}
    else if (d == 180) {s = 0; c = -1;}
    else if (d == 270 || d == -90) {s = -1; c = 0;}
    else {s = sin(d*M_PI/180); c = cos(d*M_PI/180);}
    fl_mult_matrix(c,-s,s,c,0,0);
  }
}
/**
  Concatenates rotation transformation onto the current one.
  \param[in] d - rotation angle, counter-clockwise in degrees (not radians)
*/
Concatenates rotation transformation onto the current one.
\param[in] d - rotation angle, counter-clockwise in degrees (not radians)
Concatenates rotation transformation onto the current one . \ param [ in ] d - rotation angle counter - clockwise in degrees ( not radians )
void fl_rotate(double d) {
  if (d) {
    double s, c;
    if (d == 0) {s = 0; c = 1;}
    else if (d == 90) {s = 1; c = 0;}
    else if (d == 180) {s = 0; c = -1;}
    else if (d == 270 || d == -90) {s = -1; c = 0;}
    else {s = sin(d*M_PI/180); c = cos(d*M_PI/180);}
    fl_mult_matrix(c,-s,s,c,0,0);
  }
}
void fl_rotate ( double d ) { if ( d ) { double s , c ; if ( d == 0 ) { s = 0 ; c = 1 ; } else if ( d == 90 ) { s = 1 ; c = 0 ; } else if ( d == 180 ) { s = 0 ; c = -1 ; } else if ( d == 270 || d == -90 ) { s = -1 ; c = 0 ; } else { s = sin ( d * M_PI / 180 ) ; c = cos ( d * M_PI / 180 ) ; } fl_mult_matrix ( c , - s , s , c , 0 , 0 ) ; } }
Concatenates rotation transformation onto the current one.
Concatenates rotation transformation onto the current one .