GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  AL_CALCULATE_ARC (3)

NAME

al_calculate_arc - Allegro 5 API

CONTENTS

Synopsis
Description
See Also

SYNOPSIS

C]
#include <allegro5/allegro_primitives.h>

void al_calculate_arc(float* dest, int stride, float cx, float cy, float rx, float ry, float start_theta, float delta_theta, float thickness, int num_segments) ]

DESCRIPTION

Calculates an elliptical arc, and sets the vertices in the destination buffer to the calculated positions. If C]thickness <= 0], then C]num_points] of points are required in the destination, otherwise twice as many are needed. The destination buffer should consist of regularly spaced (by distance of C]stride] bytes) doublets of floats, corresponding to x and y coordinates of the vertices.

I]Parameters:]
[bu] dest - The destination buffer
[bu] stride - Distance (in bytes) between starts of successive pairs of coordinates
[bu] cx, cy - Center of the arc
[bu] rx, ry - Radii of the arc
[bu] start_theta - The initial angle from which the arc is calculated
[bu] delta_theta - Angular span of the arc (pass a negative number to switch direction)
[bu] thickness - Thickness of the arc
[bu] num_points - The number of points to calculate

SEE ALSO

al_draw_arc(3), al_calculate_spline(3), al_calculate_ribbon(3)

Search for    or go to Top of page |  Section 3 |  Main Index


Allegro reference manual AL_CALCULATE_ARC (3)

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.