Skip to content

vis.vector2nasaltemporal

  VECTOR2NASALTEMPORAL - convert a vector from eye view to up/down/nasal/temporal view

  V_OUT = ndi.fun.vis.vector2nasaltemporal(V_IN, VIEWING_EYE)

  Given a vector V_IN in degrees in compass coordinates with VIEWING_EYE
  either 'left' or 'right, converts the vector to a coordinate system
  such that the left half of the viewing field corresponds to 'temporal' and 
  the right half of the viewing field corresponds to 'nasal'.

  Inputs: V_IN (degrees in compass coordinates)
          VIEWING_EYE (can be 0 or false (left) or 1 or true (right), or the strings 'left' or 'right')

  Example:
    v_in = 90; % a right-ward vector
    viewing_eye = 'right'; % this vector moves temporally
    v_out = ndi.fun.vis.vector2nasaltemporal(v_in,viewing_eye);
       % v_out == 270