creates a right handed Cartesian coordinate system

Syntax

[vy, vz, vx] = sw_cartesian(n)

V = sw_cartesian(n)

Description

[vy, vz, vx] = sw_cartesian(n) creates an right handed Cartesian coordinate system with , and defining the basis vectors.

V = sw_cartesian(n) the generated basis vectors are stored in the V matrix: V = [vx vy vz] as column vectors.

Input Arguments

n
Either a 3 element row/column vector or a matrix with columns defining 3 vectors.

Output Arguments

vy,vz,vx
Vectors defining the right handed coordinate system. They are either column of row vectors depending on the shape of the input n.