Safe Haskell | None |
---|---|
Language | Haskell98 |
- data Vec4 a = Vec4 !a !a !a !a
- data Vec3 a = Vec3 !a !a !a
- data Vec2 a = Vec2 !a !a
- class Functor v => Vector v where
- vNegate :: (Num a, Vector v) => v a -> v a
- (<+>) :: (Num a, Vector v) => v a -> v a -> v a
- (<*>) :: (Num a, Vector v) => v a -> v a -> v a
- (<->) :: (Num a, Vector v) => v a -> v a -> v a
- (</>) :: (Fractional a, Vector v) => v a -> v a -> v a
- (<.>) :: (Num a, Vector v) => v a -> v a -> a
- (*>) :: (Num a, Vector v) => a -> v a -> v a
- (</) :: (Fractional a, Vector v) => v a -> a -> v a
- len :: (Floating a, Vector v) => v a -> a
- lenSquared :: (Num a, Vector v) => v a -> a
- maxVec :: (Ord k, Vector v) => v k -> v k -> v k
- minVec :: (Ord k, Vector v) => v k -> v k -> v k
- minComponent :: (Ord k, Vector v) => v k -> k
- maxComponent :: (Ord k, Vector v) => v k -> k
- minAbsComponent :: (Num k, Ord k, Vector v) => v k -> k
- maxAbsComponent :: (Num k, Ord k, Vector v) => v k -> k
- vIndexOfMinComponent :: (Ord k, Vector v) => v k -> Int
- vIndexOfMaxComponent :: (Ord k, Vector v) => v k -> Int
- vIndexOfMinAbsComponent :: (Ord k, Num k, Vector v) => v k -> Int
- vIndexOfMaxAbsComponent :: (Ord k, Num k, Vector v) => v k -> Int
- (<%>) :: Floating a => Vec3 a -> Vec3 a -> Vec3 a
- unitVector :: (Floating a, Vector v) => v a -> v a
- tripleProduct :: Floating a => Vec3 a -> Vec3 a -> Vec3 a -> a
Documentation
Vec4 !a !a !a !a |
Vec3 !a !a !a |
Functor Vec3 Source # | |
Vector Vec3 Source # | |
(RealFloat a, Unbox a) => Vector Vector (Vec3 a) Source # | |
(RealFloat a, Unbox a) => MVector MVector (Vec3 a) Source # | |
Eq a => Eq (Vec3 a) Source # | |
Ord a => Ord (Vec3 a) Source # | |
Read a => Read (Vec3 a) Source # | |
Show a => Show (Vec3 a) Source # | |
(RealFloat a, Unbox a) => Unbox (Vec3 a) Source # | |
data MVector s (Vec3 a) Source # | |
data Vector (Vec3 a) Source # | |
Vec2 !a !a |
(</>) :: (Fractional a, Vector v) => v a -> v a -> v a Source #
(</) :: (Fractional a, Vector v) => v a -> a -> v a Source #
lenSquared :: (Num a, Vector v) => v a -> a Source #
minComponent :: (Ord k, Vector v) => v k -> k Source #
maxComponent :: (Ord k, Vector v) => v k -> k Source #
unitVector :: (Floating a, Vector v) => v a -> v a Source #