Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data HalfLine d r = HalfLine {
- _startPoint :: Point d r
- _halfLineDirection :: Vector d r
- startPoint :: forall d r. Lens' (HalfLine d r) (Point d r)
- halfLineDirection :: forall d r. Lens' (HalfLine d r) (Vector d r)
- halfLineToSubLine :: (Arity d, Num r) => HalfLine d r -> SubLine d () (UnBounded r) r
- fromSubLine :: (Num r, Arity d) => SubLine d p (UnBounded r) r -> Maybe (HalfLine d r)
- onHalfLine :: (Ord r, Fractional r, Arity d) => Point d r -> HalfLine d r -> Bool
- toHalfLine :: (Num r, Arity d) => LineSegment d p r -> HalfLine d r
\(d\)-dimensional Half-Lines
\(d\)-dimensional Half-Lines
HalfLine | |
|
Instances
onHalfLine :: (Ord r, Fractional r, Arity d) => Point d r -> HalfLine d r -> Bool Source #
Test if a point lies on a half-line
toHalfLine :: (Num r, Arity d) => LineSegment d p r -> HalfLine d r Source #
Transform a LineSegment into a half-line, by forgetting the second endpoint. Note that this also forgets about if the starting point was open or closed.