jord-0.4.2.0: Geographical Position Calculations

Copyright(c) 2018 Cedric Liegeois
LicenseBSD3
MaintainerCedric Liegeois <ofmooseandmen@yahoo.fr>
Stabilityexperimental
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

Data.Geo.Jord.Vector3d

Description

3-element vectors.

Synopsis

Documentation

data Vector3d Source #

3-element vector.

Constructors

Vector3d 

Fields

Instances
Eq Vector3d Source # 
Instance details

Defined in Data.Geo.Jord.Vector3d

Show Vector3d Source # 
Instance details

Defined in Data.Geo.Jord.Vector3d

class IsVector3d a where Source #

class for data types assimilated to Vector3d.

Minimal complete definition

vec

Methods

vec :: a -> Vector3d Source #

Instances
IsVector3d NVector Source # 
Instance details

Defined in Data.Geo.Jord.NVector

Methods

vec :: NVector -> Vector3d Source #

IsVector3d EcefPosition Source # 
Instance details

Defined in Data.Geo.Jord.EcefPosition

IsVector3d Course Source # 
Instance details

Defined in Data.Geo.Jord.Kinematics

Methods

vec :: Course -> Vector3d Source #

vadd :: Vector3d -> Vector3d -> Vector3d Source #

Adds 2 vectors.

vsub :: Vector3d -> Vector3d -> Vector3d Source #

Subtracts 2 vectors.

vdot :: Vector3d -> Vector3d -> Double Source #

Computes the dot product of 2 vectors.

vnorm :: Vector3d -> Double Source #

Computes the norm of a vector.

vcross :: Vector3d -> Vector3d -> Vector3d Source #

Computes the cross product of 2 vectors: the vector perpendicular to given vectors.

vrotate :: Vector3d -> [Vector3d] -> Vector3d Source #

vrotate v rm applies rotation matrix rm to v.

vscale :: Vector3d -> Double -> Vector3d Source #

vscale v s multiplies each component of v by s.

vunit :: Vector3d -> Vector3d Source #

Normalises a vector. The vnorm of the produced vector is 1.

vzero :: Vector3d Source #

vector of vnorm 0.

transpose :: [Vector3d] -> [Vector3d] Source #

transpose square (3x3) matrix of Vector3d.

mdot :: [Vector3d] -> [Vector3d] -> [Vector3d] Source #

multiplies 2 square (3x3) matrices of Vector3d.