learn-physics-0.4.3: Haskell code for learning physics

Safe HaskellNone

Physics.Learn.Visual.VisTools

Description

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

Synopsis

Documentation

xyzFromVec :: Vec -> Xyz DoubleSource

Make an Xyz object from a Vec.

xyzFromPos :: Position -> Xyz DoubleSource

Make an Xyz object from a Position.

visVec :: Color -> Vec -> VisObject DoubleSource

A VisObject arrow from a vector

oneVector :: Color -> Position -> Vec -> VisObject DoubleSource

Place a vector at a particular position.

displayVectorFieldSource

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 DoubleSource

A displayable VisObject for a curve.