mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-14 14:58:29 +00:00
Simplify
This commit is contained in:
parent
44c3736625
commit
9c056e37da
@ -10,7 +10,7 @@ impl Intersect for (&HorizontalRayToTheRight<2>, &LineSegment<2>) {
|
||||
fn intersect(self) -> Option<Self::Intersection> {
|
||||
let (ray, segment) = self;
|
||||
|
||||
let [a, b] = segment.points();
|
||||
let [a, b] = segment.points;
|
||||
let [lower, upper] = if a.v <= b.v { [a, b] } else { [b, a] };
|
||||
let [left, right] = if a.u <= b.u { [a, b] } else { [b, a] };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user