AngleSepFromRotation:

Path: Math/Geometry

% Compute angular separation between 2 vectors by rotating about an axis
   
   Type AngleSepFromRotation for a demo.

   Since version 11.
--------------------------------------------------------------------------
   Form:
   [sep,minSep,maxSep] = AngleSepFromRotation( axis, u1, u2, phi )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   axis        (3,1)     Axis of rotation
   u1          (3,N)     Vector u1. This vector rotates. 
   u2          (3,N)     Vector u2. This vector is fixed.
   phi         (1,N)     Rotation angle about axis (rad)

   -------
   Outputs
   -------
   sep         (1,N)     Separation angle. Equivalent to:
                           u1R = QForm( AU2Q(phi,axis) )
                           sep = acos( Dot(u1R,u2) ) 
   minSep      (1,N)     Minimum possible separation for any rotation (rad)
   maxSep      (1,N)     Maimum possible separation for any rotation (rad)
   phiMin      (1,N)     Rotation angle for minimum separation (rad)
   phiMax      (1,N)     Rotation angle for maximum separation (rad)

--------------------------------------------------------------------------

Children:

Common: CommonData/SwooshWatermark
Common: General/CellToMat
Common: General/MatToCell
Common: General/Watermark
Common: Graphics/NewFig
Common: Graphics/Plot2D
Common: Graphics/PltStyle
Math: Linear/Cross
Math: Linear/Unit

Back to the Math Module page