computational-geometry-0.1.0: Collection of algorithms in Computational Geometry.

Copyright(C) 2017 Maksymilian Owsianny
LicenseBSD-style (see LICENSE)
MaintainerMaksymilian.Owsianny@gmail.com
Safe HaskellNone
LanguageHaskell2010

Geometry.SetOperations.Clip

Description

 

Documentation

class Clip b v n where Source #

Minimal complete definition

clipFacet | splitFacet

Methods

clipFacet :: Plane v n -> Facet b v n -> Maybe (Facet b v n) Source #

splitFacet :: Plane v n -> Facet b v n -> (Maybe (Facet b v n), Maybe (Facet b v n)) Source #

splitFacet :: (Functor v, Num n) => Plane v n -> Facet b v n -> (Maybe (Facet b v n), Maybe (Facet b v n)) Source #

Instances

(MakeCrossPoint v n, R2 v, Applicative v, Foldable v, Num n, Ord n, EqZero n) => Clip (FB2 v n) v n Source # 

Methods

clipFacet :: Plane v n -> Facet (FB2 v n) v n -> Maybe (Facet (FB2 v n) v n) Source #

splitFacet :: Plane v n -> Facet (FB2 v n) v n -> (Maybe (Facet (FB2 v n) v n), Maybe (Facet (FB2 v n) v n)) Source #

(MakeCrossPoint v n, R3 v, Applicative v, Foldable v, Num n, Ord n, EqZero n) => Clip (FB3 v n) v n Source # 

Methods

clipFacet :: Plane v n -> Facet (FB3 v n) v n -> Maybe (Facet (FB3 v n) v n) Source #

splitFacet :: Plane v n -> Facet (FB3 v n) v n -> (Maybe (Facet (FB3 v n) v n), Maybe (Facet (FB3 v n) v n)) Source #

vec3 :: (R3 v, Applicative v) => n -> n -> n -> v n Source #