| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Linear.NURBS.Types
- data Weight f a = Weight {
- _weightPoint :: f a
- _weightValue :: a
- weightPoint :: forall f a f. Lens (Weight f a) (Weight f a) (f a) (f a)
- weightValue :: forall f a. Lens' (Weight f a) a
- ofWeight :: Additive f => f a -> a -> Weight f a
- weight :: (Additive f, Fractional a) => Lens' (Weight f a) a
- wpoint :: (Additive f, Additive g, Fractional a) => Lens (Weight f a) (Weight g a) (f a) (g a)
- data Span a = Span {
- _spanStart :: a
- _spanEnd :: a
- spanStart :: forall a. Lens' (Span a) a
- spanEnd :: forall a. Lens' (Span a) a
- data KnotData a = KnotData {
- _knotDataAt :: a
- _knotDataSpan :: Span a
- _knotData :: [(Span a, a)]
- knotData :: forall a. Lens' (KnotData a) [(Span a, a)]
- knotDataAt :: forall a. Lens' (KnotData a) a
- knotDataSpan :: forall a. Lens' (KnotData a) (Span a)
- data NURBS f a = NURBS {
- _nurbsPoints :: [Weight f a]
- _nurbsKnot :: [a]
- _nurbsDegree :: Int
- nurbsPoints :: forall f a f. Lens (NURBS f a) (NURBS f a) [Weight f a] [Weight f a]
- nurbsKnot :: forall f a. Lens' (NURBS f a) [a]
- nurbsKnoti :: Lens' (NURBS f a) [a]
- nurbsDegree :: forall f a. Lens' (NURBS f a) Int
Documentation
Point with weight
Constructors
| Weight | |
Fields
| |
Instances
| Functor f => Functor (Weight f) Source | |
| Foldable f => Foldable (Weight f) Source | |
| Traversable f => Traversable (Weight f) Source | |
| Affine f => Affine (Weight f) Source | |
| Metric f => Metric (Weight f) Source | |
| Additive f => Additive (Weight f) Source | |
| (Eq a, Eq (f a)) => Eq (Weight f a) Source | |
| (Ord a, Ord (f a)) => Ord (Weight f a) Source | |
| (Read a, Read (f a)) => Read (Weight f a) Source | |
| (Show a, Show (f a)) => Show (Weight f a) Source | |
| (Metric f, Ord a, Floating a, SimEq a) => SimEq (Weight f a) Source | |
| type Diff (Weight f) = Weight (Diff f) Source |
weightPoint :: forall f a f. Lens (Weight f a) (Weight f a) (f a) (f a) Source
weightValue :: forall f a. Lens' (Weight f a) a Source
wpoint :: (Additive f, Additive g, Fractional a) => Lens (Weight f a) (Weight g a) (f a) (g a) Source
Point lens
Knot span
Constructors
| Span | |
Fields
| |
Knot evaluation data, used to compute basis functions
Constructors
| KnotData | |
Fields
| |
knotDataAt :: forall a. Lens' (KnotData a) a Source
knotDataSpan :: forall a. Lens' (KnotData a) (Span a) Source
NURBS
Constructors
| NURBS | |
Fields
| |
Instances
| Functor f => Functor (NURBS f) Source | |
| Foldable f => Foldable (NURBS f) Source | |
| (Eq a, Eq (f a)) => Eq (NURBS f a) Source | |
| (Ord a, Ord (f a)) => Ord (NURBS f a) Source | |
| (Read a, Read (f a)) => Read (NURBS f a) Source | |
| (Show a, Show (f a)) => Show (NURBS f a) Source | |
| (Metric f, Ord a, Floating a, SimEq (f a)) => SimEq (NURBS f a) Source |
nurbsKnoti :: Lens' (NURBS f a) [a] Source
nurbsDegree :: forall f a. Lens' (NURBS f a) Int Source