GetVectorDistance Function

Calculates the distance between two vectors.

float GetVectorDistance(const float vec1[3], const float vec2[3], bool squared)

Parameters

const float[3] vec1

First vector.

const float[3] vec2

Second vector.

bool squared

If true, the result will be squared (for optimization).

Return Value

Vector distance.