Lines Matching refs:arc

387 static void get_subarc_control_points(vg_arc * arc, int32_t span)  in get_subarc_control_points()  argument
390 fullarc.angle = arc->angle; in get_subarc_control_points()
391 fullarc.quarter = arc->quarter; in get_subarc_control_points()
392 fullarc.rad = arc->rad; in get_subarc_control_points()
396 if(arc->angle == 90) { in get_subarc_control_points()
397 copy_arc(arc, &fullarc); in get_subarc_control_points()
402 uint16_t t2 = TperDegree[arc->angle + span]; in get_subarc_control_points()
425 uint16_t t1 = TperDegree[arc->angle]; in get_subarc_control_points()
467 arc->p0x = (int32_t)floorf(0.5f + pt1x); in get_subarc_control_points()
468 arc->p0y = (int32_t)floorf(0.5f + pt1y); in get_subarc_control_points()
469 arc->p1x = (int32_t)floorf(0.5f + e3x); in get_subarc_control_points()
470 arc->p1y = (int32_t)floorf(0.5f + e3y); in get_subarc_control_points()
471 arc->p2x = (int32_t)floorf(0.5f + c3x); in get_subarc_control_points()
472 arc->p2y = (int32_t)floorf(0.5f + c3y); in get_subarc_control_points()
473 arc->p3x = (int32_t)floorf(0.5f + pt2x); in get_subarc_control_points()
474 arc->p3y = (int32_t)floorf(0.5f + pt2y); in get_subarc_control_points()
480 static void get_arc_control_points(vg_arc * arc, bool start) in get_arc_control_points() argument
483 fullarc.angle = arc->angle; in get_arc_control_points()
484 fullarc.quarter = arc->quarter; in get_arc_control_points()
485 fullarc.rad = arc->rad; in get_arc_control_points()
489 if(arc->angle == 90) { in get_arc_control_points()
490 copy_arc(arc, &fullarc); in get_arc_control_points()
495 uint16_t t = TperDegree[arc->angle]; in get_arc_control_points()
515 arc->p0x = (int32_t)floorf(0.5f + lerp(dx, ex, t)); in get_arc_control_points()
516 arc->p0y = (int32_t)floorf(0.5f + lerp(dy, ey, t)); in get_arc_control_points()
517 arc->p1x = (int32_t)floorf(0.5f + ex); in get_arc_control_points()
518 arc->p1y = (int32_t)floorf(0.5f + ey); in get_arc_control_points()
519 arc->p2x = (int32_t)floorf(0.5f + cx); in get_arc_control_points()
520 arc->p2y = (int32_t)floorf(0.5f + cy); in get_arc_control_points()
521 arc->p3x = fullarc.p3x; in get_arc_control_points()
522 arc->p3y = fullarc.p3y; in get_arc_control_points()
525 arc->p0x = fullarc.p0x; in get_arc_control_points()
526 arc->p0y = fullarc.p0y; in get_arc_control_points()
527 arc->p1x = (int32_t)floorf(0.5f + ax); in get_arc_control_points()
528 arc->p1y = (int32_t)floorf(0.5f + ay); in get_arc_control_points()
529 arc->p2x = (int32_t)floorf(0.5f + dx); in get_arc_control_points()
530 arc->p2y = (int32_t)floorf(0.5f + dy); in get_arc_control_points()
531 arc->p3x = (int32_t)floorf(0.5f + lerp(dx, ex, t)); in get_arc_control_points()
532 arc->p3y = (int32_t)floorf(0.5f + lerp(dy, ey, t)); in get_arc_control_points()