<< CL_unitVector Math Models >>

CelestLab >> Math > CL_vectAngle

CL_vectAngle

Angle between vectors

Calling Sequence

angle = CL_vectAngle(u,v)

Description

Parameters

u:

Vector or matrix (considered as a set of column vectors) (3x1 or 3xN)

v:

Vector or matrix or matrix (considered as a set of column vectors) (3x1 or 3xN)

angle:

Angle between u and v (1xN)

Authors

See also

Examples

// u and v : set of column vectors
u = [[1;0;0], [1;0;0], [0;0;0]];
v = [[0;1;0], [1;0;0.001], [1;0;0]];
CL_vectAngle(u,v) * 180/%pi

// u: set of column vectors, v : one column vector
u = [[1;0;0], [1;0;0], [0;1;0.001]];
v = [0;1;0];
CL_vectAngle(u,v) * 180/%pi

Report an issue
<< CL_unitVector Math Models >>