Diagrams/Converting

From HaskellWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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.

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

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