Remove unused function

This commit is contained in:
Matthew Gordon 2019-12-12 13:01:02 -05:00
parent 777580be17
commit 199b33f944
1 changed files with 0 additions and 12 deletions

View File

@ -101,18 +101,6 @@ fn permute_vector_elements<T: RealField>(v: &Vector3<T>, indices: &[usize; 3]) -
Vector3::new(v[indices[0]], v[indices[1]], v[indices[2]])
}
fn reverse_permute_vector_elements<T: RealField>(
v: &Vector3<T>,
indices: &[usize; 3],
) -> Vector3<T> {
debug_assert!(is_valid_permutation(&indices));
let mut result = Vector3::zeros();
for i in 0..3 {
result[indices[i]] = v[i];
}
result
}
fn calculate_shear_to_z_axis<T: RealField>(v: &Vector3<T>) -> Vector2<T> {
Vector2::new(-v.x / v.z, -v.y / v.z)
}