## vec_length (vector);

Returns the length or magnitude of a vector, i.e. its distance to the
level origin.

### Parameters:

vector - whose length is to be calculated.

### Returns:

Magnitude of vector
### Speed:

Fast### Example:

distance = vec_length(my.x); *// calculate the distance of the ***my** entity to the level origin

### See also:

vec_dist