Diagrams/Converting: Difference between revisions

From HaskellWiki
(Created page with "== Diagrams and QDiagrams == For more information see http://projects.haskell.org/diagrams/doc/manual.html#using-queries . {| class="wikitable" style="text-align:center" |- ...")
 
(conversion table for some diagrams types)
Line 12: Line 12:
! <code>Diagram</code>
! <code>Diagram</code>
| [http://projects.haskell.org/diagrams/haddock/diagrams-lib/Diagrams-Query.html#v:value <code>value</code>] ||  
| [http://projects.haskell.org/diagrams/haddock/diagrams-lib/Diagrams-Query.html#v:value <code>value</code>] ||  
|}
== Directions and Angles ==
{| class="wikitable" style="text-align:center"
|-
!  !! vector ('''e.g.''' <code>V2</code>) !! [http://projects.haskell.org/diagrams/haddock/diagrams-lib/Diagrams-Direction.html#t:Direction <code>Direction</code>] !! [http://projects.haskell.org/diagrams/haddock/diagrams-lib/Diagrams-Angle.html#t:Angle <code>Angle</code>]
|-
! [http://projects.haskell.org/diagrams/haddock/diagrams-lib/Diagrams-Points.html#t:Point <code>Point</code>]
| [http://hackage.haskell.org/package/linear/docs/Linear-Affine.html#v:.-45-. <code>(.-.)</code>]
| [http://projects.haskell.org/diagrams/haddock/diagrams-lib/Diagrams-Direction.html#v:dirBetween <code>dirBetween</code>]
|-
! vector ('''e.g.''' <code>V2</code>)
| <code>id</code>
| [http://projects.haskell.org/diagrams/haddock/diagrams-lib/Diagrams-Direction.html#v:direction <code>direction</code>]
| [http://projects.haskell.org/diagrams/haddock/diagrams-lib/Diagrams-Angle.html#v:angleBetween <code>angleBetween</code>], [http://projects.haskell.org/diagrams/haddock/diagrams-lib/Diagrams-TwoD-Vector.html#v:signedAngleBetween <code>signedAngleBetween</code>]
|-
! [http://projects.haskell.org/diagrams/haddock/diagrams-lib/Diagrams-Direction.html#t:Direction <code>Direction</code>]
| [http://projects.haskell.org/diagrams/haddock/diagrams-lib/Diagrams-Direction.html#v:fromDirection <code>fromDirection</code>]
| <code>id</code>
| [http://projects.haskell.org/diagrams/haddock/diagrams-lib/Diagrams-Direction.html#v:angleBetweenDirs <code>angleBetweenDirs</code>], [http://projects.haskell.org/diagrams/haddock/diagrams-lib/Diagrams-TwoD-Vector.html#v:signedAngleBetweenDirs <code>signedAngleBetweenDirs</code>]
|-
! [http://projects.haskell.org/diagrams/haddock/diagrams-lib/Diagrams-Angle.html#t:Angle <code>Angle</code>]
| [http://projects.haskell.org/diagrams/haddock/diagrams-lib/Diagrams-TwoD-Vector.html#v:angleV <code>angleV</code>], [http://projects.haskell.org/diagrams/haddock/diagrams-lib/Diagrams-TwoD-Vector.html#v:e <code>e</code>]
| [http://projects.haskell.org/diagrams/haddock/diagrams-lib/Diagrams-TwoD-Vector.html#v:angleDir <code>angleDir</code>]
| <code>id</code>
|}
|}

Revision as of 20:51, 2 June 2017

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