Home > biomechZoo > Toolbox > Support Functions > vecrotate.m

vecrotate

PURPOSE ^

vout = VECROTATE(vin,ang,ax) rotates a vector any number of degrees about any axis

SYNOPSIS ^

function vout = vecrotate(vin,ang,ax)

DESCRIPTION ^

 vout = VECROTATE(vin,ang,ax) rotates a vector any number of degrees about any axis

 ARGUMENTS
  vin     ...    n x 3 matrix to rotate
  ang     ...    Angular rotation (in degrees)
  ax      ...    Axes to rotate about (string): 'x','y','z' or 'i','j','k'

 RETURN
  vout    ...    Rotated n x 3 matrix

 See also ctransform

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sun 10-Mar-2024 22:39:06 by m2html © 2005