Remove unused return value of vm_extract_angles_vector

This commit is contained in:
Kp 2015-02-03 00:37:08 +00:00
parent 656c51fa99
commit 2026ab7e3a
2 changed files with 2 additions and 3 deletions

View file

@ -348,7 +348,7 @@ static inline vms_angvec vm_extract_angles_matrix (const vms_matrix &m)
//extract heading and pitch from a vector, assuming bank==0
vms_angvec &vm_extract_angles_vector (vms_angvec &a, const vms_vector &v);
void vm_extract_angles_vector (vms_angvec &a, const vms_vector &v);
//compute the distance from a point to a plane. takes the normalized normal

View file

@ -603,14 +603,13 @@ static vms_angvec &vm_extract_angles_vector_normalized(vms_angvec &a,const vms_v
}
//extract heading and pitch from a vector, assuming bank==0
vms_angvec &vm_extract_angles_vector(vms_angvec &a,const vms_vector &v)
void vm_extract_angles_vector(vms_angvec &a,const vms_vector &v)
{
vms_vector t;
if (vm_vec_copy_normalize(t,v) != 0)
vm_extract_angles_vector_normalized(a,t);
else
a = {};
return a;
}
//compute the distance from a point to a plane. takes the normalized normal