Skip to content

Commit

Permalink
fixes halfplane testscases
Browse files Browse the repository at this point in the history
  • Loading branch information
noinia committed Apr 28, 2024
1 parent a9d662f commit d2ce981
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion hgeometry/hgeometry.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ library

HGeometry.IntervalTree

HGeometry.HalfPlane.CommonIntersection
-- HGeometry.HalfPlane.CommonIntersection

HGeometry.Polygon.Triangulation
HGeometry.Polygon.Triangulation.TriangulateMonotone
Expand Down
6 changes: 3 additions & 3 deletions hgeometry/kernel/src/HGeometry/HalfPlane.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module HGeometry.HalfPlane
( HalfPlane(..)
) where

import HGeometry.HalfPlane.Class
import HGeometry.HalfSpace.Class
import HGeometry.Line
import HGeometry.Line.LineEQ
import HGeometry.Properties
Expand All @@ -20,8 +20,8 @@ type HalfPlane r = GHalfPlane (LineEQ r) r
type instance NumType (HalfPlane r) = r


instance HalfPlane_ (GHalfPlane line r) r where
type
-- instance HalfPlane_ (GHalfPlane line r) r where
-- type

-- type HalfPlane r = HalfSpace 2 r

Expand Down
4 changes: 2 additions & 2 deletions hgeometry/kernel/src/HGeometry/HyperPlane/Class.hs
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ class ( NumType hyperPlane ~ r
-- the positive halfspace.
--
-- >>> normalVector myVerticalLine
-- Vector2 (-1.0) 0.0
-- Vector2 1.0 (-0.0)
-- >>> normalVector myLine
-- Vector2 1.0 (-1.0)
-- Vector2 (-1.0) 1.0
normalVector :: (Num r, Eq r, 1 <= d) => hyperPlane -> Vector d r
default normalVector :: (KnownNat d, Num r, Eq r, 1 <= d)
=> hyperPlane -> Vector d r
Expand Down

0 comments on commit d2ce981

Please sign in to comment.