keid-geometry-0.1.1.3: Geometry primitives for Keid engine.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Geometry.Cube

Synopsis

Documentation

data Vertices a Source #

Constructors

Vertices 

Fields

Instances

Instances details
Foldable Vertices Source # 
Instance details

Defined in Geometry.Cube

Methods

fold :: Monoid m => Vertices m -> m Source #

foldMap :: Monoid m => (a -> m) -> Vertices a -> m Source #

foldMap' :: Monoid m => (a -> m) -> Vertices a -> m Source #

foldr :: (a -> b -> b) -> b -> Vertices a -> b Source #

foldr' :: (a -> b -> b) -> b -> Vertices a -> b Source #

foldl :: (b -> a -> b) -> b -> Vertices a -> b Source #

foldl' :: (b -> a -> b) -> b -> Vertices a -> b Source #

foldr1 :: (a -> a -> a) -> Vertices a -> a Source #

foldl1 :: (a -> a -> a) -> Vertices a -> a Source #

toList :: Vertices a -> [a] Source #

null :: Vertices a -> Bool Source #

length :: Vertices a -> Int Source #

elem :: Eq a => a -> Vertices a -> Bool Source #

maximum :: Ord a => Vertices a -> a Source #

minimum :: Ord a => Vertices a -> a Source #

sum :: Num a => Vertices a -> a Source #

product :: Num a => Vertices a -> a Source #

Traversable Vertices Source # 
Instance details

Defined in Geometry.Cube

Methods

traverse :: Applicative f => (a -> f b) -> Vertices a -> f (Vertices b) Source #

sequenceA :: Applicative f => Vertices (f a) -> f (Vertices a) Source #

mapM :: Monad m => (a -> m b) -> Vertices a -> m (Vertices b) Source #

sequence :: Monad m => Vertices (m a) -> m (Vertices a) Source #

Applicative Vertices Source # 
Instance details

Defined in Geometry.Cube

Methods

pure :: a -> Vertices a Source #

(<*>) :: Vertices (a -> b) -> Vertices a -> Vertices b Source #

liftA2 :: (a -> b -> c) -> Vertices a -> Vertices b -> Vertices c Source #

(*>) :: Vertices a -> Vertices b -> Vertices b Source #

(<*) :: Vertices a -> Vertices b -> Vertices a Source #

Functor Vertices Source # 
Instance details

Defined in Geometry.Cube

Methods

fmap :: (a -> b) -> Vertices a -> Vertices b Source #

(<$) :: a -> Vertices b -> Vertices a Source #

Show a => Show (Vertices a) Source # 
Instance details

Defined in Geometry.Cube

Eq a => Eq (Vertices a) Source # 
Instance details

Defined in Geometry.Cube

Methods

(==) :: Vertices a -> Vertices a -> Bool Source #

(/=) :: Vertices a -> Vertices a -> Bool Source #

Ord a => Ord (Vertices a) Source # 
Instance details

Defined in Geometry.Cube

positions :: Vertices Vec3 Source #

Unit cube vertices centered at (0,0,0).

edges :: [Vec3] Source #

bbWireColored :: [Vertex Packed Vec4] Source #