jord-0.4.2.0: Geographical Position Calculations

Copyright (c) 2018 Cedric Liegeois BSD3 Cedric Liegeois experimental portable Safe Haskell2010

Data.Geo.Jord.Vector3d

Description

3-element vectors.

Synopsis

# Documentation

data Vector3d Source #

3-element vector.

Constructors

 Vector3d Fieldsvx :: Double vy :: Double vz :: Double
Instances
 Source # Instance detailsDefined in Data.Geo.Jord.Vector3d Methods Source # Instance detailsDefined in Data.Geo.Jord.Vector3d MethodsshowList :: [Vector3d] -> ShowS #

class IsVector3d a where Source #

class for data types assimilated to Vector3d.

Minimal complete definition

vec

Methods

vec :: a -> Vector3d Source #

Instances
 Source # Instance detailsDefined in Data.Geo.Jord.NVector Methods Source # Instance detailsDefined in Data.Geo.Jord.EcefPosition Methods Source # Instance detailsDefined in Data.Geo.Jord.Kinematics Methods

Subtracts 2 vectors.

Computes the dot product of 2 vectors.

Computes the norm of a vector.

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 v s multiplies each component of v by s.

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

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.