Gamgine-0.5.1: Some kind of game library or set of utilities.
Gamgine.Math.Vect
module Data.Vec
type Vect = Vec3 Double Source #
type Vect4 = Vec4 Double Source #
x :: Vect -> Double Source #
y :: Vect -> Double Source #
z :: Vect -> Double Source #
v3 :: Double -> Double -> Double -> Vect Source #
v4 :: Double -> Double -> Double -> Double -> Vect4 Source #
fromTuple :: (Double, Double, Double) -> Vect Source #
toTuple :: Vect -> (Double, Double, Double) Source #
fromVect4 :: Vect4 -> Vect Source #
len :: Vect -> Double Source #
inverseVec :: (Map b b u v, Num b) => u -> v Source #
clampVec :: Vect -> Vect -> Vect -> Vect Source #
maxVec :: (ZipWith c c c u v w, Ord c) => u -> v -> w Source #
minVec :: (ZipWith c c c u v w, Ord c) => u -> v -> w Source #
index :: (Double -> Bool) -> Vect -> Int Source #
absVec :: (Map b b u v, Num b) => u -> v Source #
nullVec :: Vect Source #
and :: Fold v Bool => v -> Bool Source #
or :: Fold v Bool => v -> Bool Source #
all :: (Fold v Bool, ZipWith a b c u v1 v) => (a -> b -> c) -> u -> v1 -> Bool Source #
any :: (Fold v Bool, ZipWith a b c u v1 v) => (a -> b -> c) -> u -> v1 -> Bool Source #