al_calculate_spline(3) al_calculate_spline(3)

# NAME

al_calculate_spline - Allegro 5 API

# SYNOPSIS

```#include <allegro5/allegro_primitives.h>
void al_calculate_spline(float* dest, int stride, float points,

float thickness, int num_segments)
```

# DESCRIPTION

Calculates a Bézier spline given 4 control points. If thickness <= 0, then num_segments of points are required in the destination, otherwise twice as many are needed. The destination buffer should consist of regularly spaced (by distance of stride bytes) doublets of floats, corresponding to x and y coordinates of the vertices.

Parameters:

dest - The destination buffer
stride - Distance (in bytes) between starts of successive pairs of coordinates
points - An array of 4 pairs of coordinates of the 4 control points
thickness - Thickness of the spline ribbon
num_segments - The number of points to calculate
{"ft_lang_label":"__label__en","ft_lang_prob":0.700824,"math_prob":0.99066,"size":992,"snap":"2022-40-2023-06","text_gpt3_token_len":253,"char_repetition_ratio":0.15384616,"word_repetition_ratio":0.0,"special_character_ratio":0.24092741,"punctuation_ratio":0.09589041,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9915975,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-01-28T03:09:27Z\",\"WARC-Record-ID\":\"<urn:uuid:1b8670bd-1c3e-43b7-9a40-4ec794978444>\",\"Content-Length\":\"7231\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:2c314aa8-2ecd-42c7-8d08-36adddcf9036>\",\"WARC-Concurrent-To\":\"<urn:uuid:94a82656-fb30-42ed-beaa-4089312de4a7>\",\"WARC-IP-Address\":\"95.216.189.5\",\"WARC-Target-URI\":\"https://man.archlinux.org/man/community/allegro/al_calculate_spline.3.en\",\"WARC-Payload-Digest\":\"sha1:PTEZBJ7ZY57FVFQP6DC43CFGX7AWPP4P\",\"WARC-Block-Digest\":\"sha1:IOYVM2Y6WNOP3OQNGU7ESLKAMQNY2JY3\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-06/CC-MAIN-2023-06_segments_1674764499470.19_warc_CC-MAIN-20230128023233-20230128053233-00669.warc.gz\"}"}