learn-physics-0.6.3: Haskell code for learning physics

Safe HaskellNone
LanguageHaskell98

Physics.Learn.Visual.VisTools

Description

Some tools related to the not-gloss 3D graphics and animation library.

Synopsis

Documentation

v3FromVec :: Vec -> V3 Double Source #

Make a V3 object from a Vec.

v3FromPos :: Position -> V3 Double Source #

Make a V3 object from a Position.

visVec :: Color -> Vec -> VisObject Double Source #

A VisObject arrow from a vector

oneVector :: Color -> Position -> Vec -> VisObject Double Source #

Place a vector at a particular position.

displayVectorField Source #

Arguments

:: Color

color for the vector field

-> Double

scale factor

-> [Position]

list of positions to show the field

-> VectorField

vector field to display

-> VisObject Double

the displayable object

Display a vector field.

curveObject :: Color -> Curve -> VisObject Double Source #

A displayable VisObject for a curve.