Personal tools

Diagrams/Converting

From HaskellWiki

Jump to: navigation, search

This page collects some conversion tables showing how to convert between different diagrams types. Each cell shows how to convert from the type labelling its row to the type labelling its column.

1 Diagrams and QDiagrams

For more information see http://projects.haskell.org/diagrams/doc/manual.html#using-queries .

QDiagram ... m Diagram
QDiagram ... m clearValue, resetValue
Diagram value

2 Directions and Angles

vector (e.g. V2) Direction Angle
Point (.-.) dirBetween
vector (e.g. V2) id direction angleBetween, signedAngleBetween
Direction fromDirection id angleBetweenDirs, signedAngleBetweenDirs
Angle angleV, e angleDir id