Remove redundant method

This commit is contained in:
Hanno Braun 2022-03-17 14:55:26 +01:00
parent f823ef5f10
commit 9770e36f8b
3 changed files with 2 additions and 7 deletions

View File

@ -69,7 +69,7 @@ impl ConfigUi {
} }
/* Render size of model bounding box */ /* Render size of model bounding box */
let bbsize = aabb.size().components(); let bbsize = aabb.size().components;
let info = format!( let info = format!(
"Model bounding box size: {:0.1} {:0.1} {:0.1}", "Model bounding box size: {:0.1} {:0.1} {:0.1}",
bbsize[0].into_f32(), bbsize[0].into_f32(),

View File

@ -104,7 +104,7 @@ fn main() -> anyhow::Result<()> {
// look at the smallest non-zero extent of the bounding box and divide that // look at the smallest non-zero extent of the bounding box and divide that
// by some value. // by some value.
let mut min_extent = Scalar::MAX; let mut min_extent = Scalar::MAX;
for extent in aabb.size().components() { for extent in aabb.size().components {
if extent > Scalar::ZERO && extent < min_extent { if extent > Scalar::ZERO && extent < min_extent {
min_extent = extent; min_extent = extent;
} }

View File

@ -79,11 +79,6 @@ impl<const D: usize> Vector<D> {
pub fn dot(&self, other: &Self) -> Scalar { pub fn dot(&self, other: &Self) -> Scalar {
self.to_na().dot(&other.to_na()).into() self.to_na().dot(&other.to_na()).into()
} }
/// Access an iterator over the vector's components
pub fn components(&self) -> [Scalar; D] {
self.components
}
} }
impl Vector<3> { impl Vector<3> {