Skip to content

Commit

Permalink
Try to fix axis/plane intersection test
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmackenzie committed Jan 6, 2020
1 parent 1a18387 commit c97130c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/Tests/Axis3d.elm
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,10 @@ intersectionWithPlane =
"intersectionWithPlane works properly"
(\axis plane ->
if
Axis3d.direction axis
|> Direction3d.componentIn (Plane3d.normalDirection plane)
|> abs
abs
(Axis3d.direction axis
|> Direction3d.componentIn (Plane3d.normalDirection plane)
)
> 1.0e-3
then
case Axis3d.intersectionWithPlane plane axis of
Expand Down

0 comments on commit c97130c

Please sign in to comment.