6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
|
}
}
/* Do a linear interpolation of two positions.
*/
static PPoint pik_position_between(PNum x, PPoint p1, PPoint p2){
PPoint out;
if( x<0.0 ) x = 0.0;
if( x>1.0 ) x = 1.0;
out.x = p2.x*x + p1.x*(1.0 - x);
out.y = p2.y*x + p1.y*(1.0 - x);
return out;
}
/* Compute the position that is dist away from pt at an heading angle of r
**
|
<
<
|
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
|
}
}
/* Do a linear interpolation of two positions.
*/
static PPoint pik_position_between(PNum x, PPoint p1, PPoint p2){
PPoint out;
out.x = p2.x*x + p1.x*(1.0 - x);
out.y = p2.y*x + p1.y*(1.0 - x);
return out;
}
/* Compute the position that is dist away from pt at an heading angle of r
**
|
7283
7284
7285
7286
7287
7288
7289
7290
|
if( !bSvgOnly ){
printf("</body></html>\n");
}
return 0;
}
#endif /* PIKCHR_SHELL */
#line 7315 "pikchr.c"
|
|
|
7281
7282
7283
7284
7285
7286
7287
7288
|
if( !bSvgOnly ){
printf("</body></html>\n");
}
return 0;
}
#endif /* PIKCHR_SHELL */
#line 7313 "pikchr.c"
|