示例#1
0
文件: wd.c 项目: gcfavorites/tastools
void wdCanvasChord(cdCanvas* canvas, double xc, double yc, double w, double h, double angle1, double angle2)
{
  double xcr, ycr, wr, hr;
  _wfWorld2Canvas(canvas, xc, yc, xcr, ycr);
  _wfWorld2CanvasSize(canvas, w, h, wr, hr);
  cdfCanvasChord(canvas, xcr, ycr, wr, hr, angle1, angle2);
}
示例#2
0
文件: wd.c 项目: LuaDist/cd
void wdCanvasChord(cdCanvas* canvas, double xc, double yc, double w, double h, double angle1, double angle2)
{
  double xcr, ycr, wr, hr;
  assert(canvas);
  if (!_cdCheckCanvas(canvas)) return;

  _wfWorld2Canvas(canvas, xc, yc, xcr, ycr);
  _wfWorld2CanvasSize(canvas, w, h, wr, hr);
  cdfCanvasChord(canvas, xcr, ycr, wr, hr, angle1, angle2);
}