make
Specification
Location | Author | Maintained by |
---|---|---|
isl/math/coordsys.py | Kenny Erleben | DIKU |
Purpose & Params
The purpose of the make function is to initiate a coordinate transformation. As input, the function takes an origin vector. For rotation, the function takes a quaternion.
Example
x,y,z = 1,2,3 # Define origin coordinate
radians = np.pi * 0.5 # Define the orientation
axis = np.array([1,1,0]) # Define the axis of rotation
r = vec3.make(x,y,z) # Define the origin vector
q = quat.Ru(radians, axis) # Define the quaternion
coordsys = cs.make(r,q) # make the coordinate transformtation