HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulelinear-1.22Haskell2010

Linear.Plucker.Coincides

Utility for working with Plücker coordinates for lines in 3d homogeneous space.

  • 1 type
  • Packagelinear-1.22
  • Exports1
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceCoincides.hs
datadata Coincides a where
#

When lines are represented as Plücker coordinates, we have the ability to check for both directed and undirected equality. Undirected equality between Lines (or a Line and a Ray) checks that the two lines coincide in 3D space. Directed equality, between two Rays, checks that two lines coincide in 3D, and have the same direction. To accomodate these two notions of equality, we use an Eq instance on the Coincides data type.

For example, to check the directed equality between two lines, p1 and p2, we write, Ray p1 == Ray p2.

Constructors

Instances1Eq
  • Eq (Coincides a)Defined in linear-1.22 · Linear.Plucker.Coincides