CSPICE_WNCOMD returns the complement of a double precision
window with respect to a specified interval.
Given:
left,
right values defining the left and right endpoints of the complement
interval.
[1,1] = size(right); double = class(right)
window SPICE window containing zero or more intervals
[2m,1] = size(window); double = class(window)
the call:
result = cspice_wncomd( left, right, window)
returns:
result SPICE window containing the complement of 'window' with respect
to the interval 'left' to 'right'
[2n,1] = size(result); double = class(result)
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 'window' contain the intervals
%
window = [ [ 1; 3 ]; [ 7; 11 ]; [ 23; 27 ]; ];
%
% The floating point complement of window with respect
% to [2,20]
%
cspice_wncomd( 2, 20, window )
MATLAB outputs:
a =
3
7
11
20
Representing the intervals:
[ 3, 7 ] [ 11, 20 ]
%
% The complement with respect to [ 0, 100 ]
%
cspice_wncomd( 0, 100, window )
MATLAB outputs:
b =
0
1
3
7
11
23
27
100
Representing the intervals:
[ 0, 1 ] [ 3, 7 ] [ 11, 23 ] [ 27, 100 ]
None.
For important details concerning this module's function, please refer to
the CSPICE routine wncomd_c.
MICE.REQ
WINDOWS.REQ
Mice Version 1.0.1, 12MAR2012, EDW (JPL), SCK (JPL)
Edited I/O section to conform to NAIF standard for Mice documentation.
Mice Version 1.0.0, 24JUL2007, EDW (JPL)
complement a d.p. window
