wumpus-basic-0.17.0: Basic objects and system code built on Wumpus-Core.

PortabilityGHC
Stabilityhighly unstable
Maintainerstephen.tetley@gmail.com

Wumpus.Basic.Kernel.Objects.LocThetaImage

Description

LocThetaImage and LocThetaGraphic types - these are functional types from the DrawingContext, start point and angle of inclination to a graphic primitive.

Synopsis

Documentation

type LocThetaGraphic u = LocThetaQuery u (GraphicAns u)Source

LocThetaGraphic - function from DrawingContext, start point and inclination to a graphic primitive (GraphicAns).

type LocThetaImage u a = LocThetaQuery u (ImageAns u a)Source

LocThetaImage - function from DrawingContext, start point and inclination to a polymorphic answer and a graphic primitive (ImageAns).

The answer is expected to be a Functor.

type DLocThetaGraphic = LocThetaGraphic DoubleSource

Type specialized version of LocThetaGraphic.

type DLocThetaImage a = LocThetaImage Double aSource

Type specialized version of LocThetaImage.

intoLocThetaImage :: LocThetaQuery u a -> LocThetaGraphic u -> LocThetaImage u aSource

intoLocThetaImage : loc_theta_query * loc_theta_graphic -> LocThetaImage

LocTheta version of intoImage.

The LocThetaImage is built as a function from an implicit start point and angle of inclination to the answer.

locThetaGraphic_ :: LocThetaImage u a -> LocThetaGraphic uSource

Downcast an LocThetaImage to a LocThetaGraphic.

This means forgetting the answer of the Image, replacing it with ().

emptyLocThetaGraphic :: InterpretUnit u => LocThetaGraphic uSource

emptyLocThetaGraphic : LocThetaGraphic

Build an empty LocThetaGraphic (i.e. a function from Point and Inclination to Graphic).

The emptyLocThetaGraphic is treated as a null primitive by Wumpus-Core and is not drawn, although it does generate a minimum bounding box at the implicit start point.

uconvLocThetaImageF :: (InterpretUnit u, InterpretUnit u1, Functor t) => LocThetaImage u (t u) -> LocThetaImage u1 (t u1)Source

Use this to convert LocThetaGraphic or LocThetaImage with Functor answer.

uconvLocThetaImageZ :: (InterpretUnit u, InterpretUnit u1) => LocThetaImage u a -> LocThetaImage u1 aSource

Use this to convert LocThetaImage with unit-less answer.