mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-05 10:28:27 +00:00
Run cargo fmt
This commit is contained in:
parent
cb1b3a8ea3
commit
5a946ebfab
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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)])
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user