Run cargo fmt

This commit is contained in:
Hanno Braun 2024-09-25 19:45:13 +02:00
parent cb1b3a8ea3
commit 5a946ebfab
3 changed files with 10 additions and 6 deletions

View File

@ -105,8 +105,9 @@ impl CycleApprox {
// up, once `array_windows` is stable.
let segment = [&segment[0], &segment[1]];
segments
.push(LineSegment::from(segment.map(|point| point.global_form)));
segments.push(LineSegment::from(
segment.map(|point| point.global_form),
));
}
segments

View File

@ -1,4 +1,4 @@
use fj_math::{Aabb, Point, Scalar, LineSegment, Vector};
use fj_math::{Aabb, LineSegment, Point, Scalar, Vector};
use crate::geometry::curves::line::Line;
@ -68,7 +68,7 @@ impl LineSegmentIntersection {
#[cfg(test)]
mod tests {
use fj_math::{Point, Scalar, LineSegment, Vector};
use fj_math::{LineSegment, Point, Scalar, Vector};
use crate::geometry::curves::line::Line;

View File

@ -4,7 +4,7 @@ use nalgebra::Perspective3;
use crate::Scalar;
use super::{Aabb, Point, LineSegment, Triangle, Vector};
use super::{Aabb, LineSegment, Point, Triangle, Vector};
/// An affine transform
#[repr(C)]
@ -63,7 +63,10 @@ impl Transform {
}
/// Transform the given segment
pub fn transform_segment(&self, segment: &LineSegment<3>) -> LineSegment<3> {
pub fn transform_segment(
&self,
segment: &LineSegment<3>,
) -> LineSegment<3> {
let [a, b] = &segment.points();
LineSegment::from([self.transform_point(a), self.transform_point(b)])
}