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.

RELATED TO vector_length_f…

normalize_vector(3alleg4)