Home Examples Installation Documentation Contact Help

xfrom_vector

Specification

Location Author Maintained by
isl/math/coordsys.py Kenny Erleben DIKU

Purpose & Params

The purpose of this function is to transform a vector to another basis.

Example

    x,y,z      = 0,-2,0
    radians    = np.pi / 2
    axis       = np.array([0,0,1])
    r          = vec3.make(x,y,z)
    q          = quat.Ru(radians, axis)
    coordsys   = cs.make(r,q)
    vec        = np.array([0,2,0])
    vec_rot    = cs.xform_vector(coordsys, vec)