Query: vector_length
OS: opendarwin
Section: 3alleg4
Links: opendarwin man pages all man pages
Forums: forum home forum categories
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
vector_length(3alleg4) Allegro manual vector_length(3alleg4)NAMEvector_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);DESCRIPTIONCalculates the length of the vector (x, y, z), using that good 'ole Pythagoras theorem.SEE ALSOnormalize_vector(3alleg4) Allegro version 4.4.2 vector_length(3alleg4)