mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-28 18:15:53 +00:00
Remove redundant method
This commit is contained in:
parent
f823ef5f10
commit
9770e36f8b
@ -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(),
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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> {
|
||||||
|
Loading…
Reference in New Issue
Block a user