Safe Haskell | None |
---|---|
Language | Haskell2010 |
- 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)
- fromSubLine :: (Num r, Arity d) => SubLine d p (UnBounded 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 | |
|
Arity d => Functor (HalfLine d) Source # | |
Arity d => Foldable (HalfLine d) Source # | |
Arity d => Traversable (HalfLine d) Source # | |
(Eq r, Arity d) => Eq (HalfLine d r) Source # | |
(Show r, Arity d) => Show (HalfLine d r) Source # | |
Generic (HalfLine d r) Source # | |
(NFData r, Arity d) => NFData (HalfLine d r) Source # | |
HasStart (HalfLine d r) Source # | |
HasSupportingLine (HalfLine d r) Source # | |
(Num r, AlwaysTruePFT d) => IsTransformable (HalfLine d r) Source # | |
type Rep (HalfLine d r) Source # | |
type NumType (HalfLine d r) Source # | |
type Dimension (HalfLine d r) Source # | |
type StartCore (HalfLine d r) Source # | |
type StartExtra (HalfLine d r) Source # | |
type IntersectionOf (HalfLine 2 r) (HalfLine 2 r) Source # | |
type IntersectionOf (HalfLine 2 r) (Line 2 r) Source # | |
type IntersectionOf (HalfLine 2 r) (LineSegment 2 p r) Source # | |
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.