vector_length man page

vector_length, vector_length_f — Calculates the length of a vector. Allegro game programming library.

Synopsis

#include <allegro.h>

fixed vector_length(fixed x, fixed y, fixed z);

float vector_length_f(float x, float y, float z);

Description

Calculates the length of the vector (x, y, z), using that good 'ole Pythagoras theorem.

See Also

normalize_vector(3)

Referenced By

normalize_vector(3).

vector_length_f(3) is an alias of vector_length(3).

version 4.4.2 Allegro Allegro manual