learn-physics-0.4.3: Haskell code for learning physics

Safe HaskellNone

Physics.Learn.Visual.GlossTools

Description

Some tools related to the gloss 2D graphics and animation library.

Synopsis

Documentation

polarToCart :: (Float, Float) -> (Float, Float)Source

assumes radians coming in

cartToPolar :: (Float, Float) -> (Float, Float)Source

theta=0 is positive x axis, output angle in radians

arrowSource

Arguments

:: Point

location of base of arrow

-> Point

displacement vector

-> Picture 

An arrow

thickArrowSource

Arguments

:: Float

arrow thickness

-> Point

location of base of arrow

-> Point

displacement vector

-> Picture 

A think arrow