Remove unused return value of vm_extract_angles_vector
This commit is contained in:
parent
656c51fa99
commit
2026ab7e3a
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue