learn-physics-0.6.4: Haskell code for learning physics

Safe HaskellNone
LanguageHaskell98

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

arrow Source #

Arguments

:: Point

location of base of arrow

-> Point

displacement vector

-> Picture 

An arrow

thickArrow Source #

Arguments

:: Float

arrow thickness

-> Point

location of base of arrow

-> Point

displacement vector

-> Picture 

A think arrow