Home
last modified time | relevance | path

Searched refs:num_curves (Results 1 – 1 of 1) sorted by relevance

/aoo42x/main/canvas/workben/
H A Dcanvasdemo.cxx424 const int num_curves = 3; in drawCurves() local
427 uno::Sequence< geometry::RealBezierSegment2D > aBeziers (num_curves); in drawCurves()
430 for (int i= 0; i < num_curves; i++) in drawCurves()
431 aBeziers[i]= geometry::RealBezierSegment2D( r * cos(i*2*M_PI/num_curves), //Px in drawCurves()
432 r * sin(i*2*M_PI/num_curves), //py in drawCurves()
433 r * 2 * cos((i*2*M_PI + 2*M_PI)/num_curves), //C1x in drawCurves()
434 r * 2 * sin((i*2*M_PI + 2*M_PI)/num_curves), //C1y in drawCurves()
435 r * 2 * cos((i*2*M_PI + 2*M_PI)/num_curves), //C2x in drawCurves()
436 r * 2 * sin((i*2*M_PI + 2*M_PI)/num_curves)); //C2y in drawCurves()

Completed in 18 milliseconds