Portability | GHC |
---|---|

Stability | highly unstable |

Maintainer | Stephen Tetley <stephen.tetley@gmail.com> |

Coordinate is a bit like a shape but does not generate a path and cannot be scaled or rotated (it can be translated).

** WARNING ** - the types of Shapes and Coordinate are not ideal and are pending revision.

- data CoordinateAnchor u
- type DCoordinateAnchor = CoordinateAnchor Double
- data Coordinate u
- type DCoordinate = Coordinate Double
- coordinate :: Num u => Point2 u -> Coordinate u
- coordinateMark :: (Real u, Floating u) => Coordinate u -> Image u (CoordinateAnchor u)

# Documentation

data CoordinateAnchor u Source

Coordinate

Eq u => Eq (CoordinateAnchor u) | |

Ord u => Ord (CoordinateAnchor u) | |

Show u => Show (CoordinateAnchor u) | |

(Real u, Floating u) => CenterAnchor (CoordinateAnchor u) |

data Coordinate u Source

Eq u => Eq (Coordinate u) | |

Ord u => Ord (Coordinate u) | |

Show u => Show (Coordinate u) | |

Num u => Translate (Coordinate u) |

type DCoordinate = Coordinate DoubleSource

coordinate :: Num u => Point2 u -> Coordinate uSource

coordinateMark :: (Real u, Floating u) => Coordinate u -> Image u (CoordinateAnchor u)Source