1al_calculate_arc(3)        Library Functions Manual        al_calculate_arc(3)
2
3
4

NAME

6       al_calculate_arc
7

SYNOPSIS

9              #include <allegro5/allegro_primitives.h>
10
11              void al_calculate_arc(float* dest, int stride, float cx, float cy,
12                 float rx, float ry, float start_theta, float delta_theta, float thickness,
13                 int num_segments)
14

DESCRIPTION

16       Calculates  an elliptical arc, and sets the vertices in the destination
17       buffer to the calculated positions.  If thickness <= 0, then num_points
18       of  points are required in the destination, otherwise twice as many are
19       needed.  The destination buffer should consist of regularly spaced  (by
20       distance  of stride bytes) doublets of floats, corresponding to x and y
21       coordinates of the vertices.
22
23       Parameters:
24
25       · dest - The destination buffer
26
27       · stride - Distance (in bytes) between starts of  successive  pairs  of
28         coordinates
29
30       · cx, cy - Center of the arc
31
32       · rx, ry - Radii of the arc
33
34       · start_theta - The initial angle from which the arc is calculated
35
36       · delta_theta  -  Angular  span  of  the arc (pass a negative number to
37         switch direction)
38
39       · thickness - Thickness of the arc
40
41       · num_points - The number of points to calculate
42

SEE ALSO

44       al_draw_arc(3), al_calculate_spline(3), al_calculate_ribbon(3)
45
46
47
48Allegro reference manual                                   al_calculate_arc(3)
Impressum