Index Page
cspice_wndifd
A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X 

Abstract
I/O
Examples
Particulars
Required Reading
Version
Index_Entries

Abstract


   CSPICE_WNDIFD returns the difference of two double precision
   windows.

I/O


   Given:

      a   SPICE window

          [2l,1] = size(a); double = class(a)

      b   SPICE window

          [2m,1] = size(b); double = class(b)

          Two SPICE windows containing zero or more intervals.

   the call:

      c = cspice_wndifd( a, b )

   returns:

      c   the window difference (in the SPICE sense) of 'a' and 'b', every
          point contained in 'a', but not contained in 'b'.

          [2n,1] = size(c); double = class(c)

          'c' can overwrite 'a' or 'b'.

Examples


   Any numerical results shown for this example may differ between
   platforms as the results depend on the SPICE kernels used as input
   and the machine specific arithmetic implementation.

      %
      % Let 'a' contain the intervals
      %
      a = [ [ 1; 3 ]; [ 7; 11 ]; [ 23; 27 ]; ];

      %
      % and b contain the intervals
      %
      b = [ [ 2; 4 ]; [ 8; 10 ]; [ 16; 18 ]; ];

      %
      % Then the difference of 'a' and 'b', 'c':
      %
      c = cspice_wndifd(a, b)

   MATLAB outputs:

      c =

           1
           2
           7
           8
          10
          11
          23
          27

      Representing the intervals:

         [ 1, 2 ]  [ 7, 8 ]  [ 10, 11 ]  [ 23, 27 ]

Particulars


   None.

Required Reading


   For important details concerning this module's function, please refer to
   the CSPICE routine wndifd_c.

   MICE.REQ
   WINDOWS.REQ

Version


   -Mice Version 1.0.1, 12-MAR-2012, EDW (JPL), SCK (JPL)

      Edited I/O section to conform to NAIF standard for Mice documentation.

   -Mice Version 1.0.0, 23-JUL-2007, EDW (JPL)

Index_Entries


   difference two d.p. windows


Wed Apr  5 18:00:36 2017