wumpus-drawing-0.2.0: High-level drawing objects built on Wumpus-Basic.

PortabilityGHC
Stabilityunstable
Maintainerstephen.tetley@gmail.com

Wumpus.Drawing.Chains.Derived

Description

Generate points in an iterated chain.

WARNING - very unstable.

Synopsis

Documentation

tableDown :: Num u => Int -> (u, u) -> LocChain uSource

tableDown : num_rows * (row_width, row_height) -> LocChain

The table grows down and right, the implicit initial point is top-left.

tableRight :: Num u => Int -> (u, u) -> LocChain uSource

tableRight : num_cols * row_width * row_height -> LocChain

The table grows right and down, the implicit initial point is top-left.

This chain is infinite.

horizontalPoints :: Num u => u -> LocChain uSource

horizontalPoints : horizontal_dist -> LocChain

The chain grows right by the supplied increment.

This chain is infinite.

verticalPoints :: Num u => u -> LocChain uSource

verticalPoints : vertical_dist -> LocChain

The chain grows up by the supplied increment.

This chain is infinite.

horizontalSteps :: Num u => [u] -> LocChain uSource

horizontalSteps : [horizontal_dist] -> LocChain

This is a scanl successive displacing the start point.

This chain is finite (for finite input list).

verticalSteps :: Num u => [u] -> LocChain uSource

verticalSteps : [vertical_dist] -> LocChain

This is a scanl successive displacing the start point.

This chain is finite (for finite input list).

** WARNING ** - name due to be changed. Current name is too general for this function.

innerHorizontals :: RealFrac u => u -> ConnectorChain uSource

Note - horizontals are projected from the start point. The horizontal component of the second point is ignored.

This chain is finite for well formed input.

innerVerticals :: RealFrac u => u -> ConnectorChain uSource

Note - verticals are projected from the start point. The vertical component of the second point is ignored.

This chain is finite for well formed input.