Yampa-0.10.4: Library for programming hybrid systems.

Copyright (c) Antony Courtney and Henrik Nilsson, Yale University, 2003 BSD-style (see the LICENSE file in the distribution) nilsson@cs.yale.edu provisional non-portable (GHC extensions) Safe Haskell98

FRP.Yampa.VectorSpace

Description

Vector space type relation and basic instances.

# Documentation

class (Eq a, Floating a) => VectorSpace v a | v -> a where Source

Minimal complete definition

Methods

zeroVector :: v Source

(*^) :: a -> v -> v infixr 9 Source

(^/) :: v -> a -> v infixl 9 Source

negateVector :: v -> v Source

(^+^) :: v -> v -> v infixl 6 Source

(^-^) :: v -> v -> v infixl 6 Source

dot :: v -> v -> a infix 7 Source

norm :: v -> a Source

normalize :: v -> v Source

Instances

 Source Source RealFloat a => VectorSpace (Vector2 a) a Source RealFloat a => VectorSpace (Vector3 a) a Source (Eq a, Floating a) => VectorSpace (a, a) a Source (Eq a, Floating a) => VectorSpace (a, a, a) a Source (Eq a, Floating a) => VectorSpace (a, a, a, a) a Source (Eq a, Floating a) => VectorSpace (a, a, a, a, a) a Source