cesium-examples/map/3d/static/Cesium/Build/Documentation/TimeInterval.html

3311 lines
91 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>TimeInterval - Cesium Documentation</title>
<!--[if lt IE 9]>
<script src="javascript/html5.js"></script>
<![endif]-->
<link href="styles/jsdoc-default.css" rel="stylesheet">
<link href="styles/prism.css" rel="stylesheet">
</head>
<body>
<div id="main">
<h1 class="page-title">
<a href="index.html"><img src="Images/CesiumLogo.png" class="cesiumLogo"></a>
TimeInterval
<div class="titleCenterer"></div>
</h1>
<section>
<header>
</header>
<article>
<div class="container-overview">
<div class="nameContainer">
<h4 class="name" id="TimeInterval">
<a href="#TimeInterval" class="doc-link"></a>
new Cesium.TimeInterval<span class="signature">(<span class="optional">options</span>)</span>
<div class="source-link rightLinks">
<a href="https://github.com/AnalyticalGraphicsInc/cesium/blob/1.58/Source/Core/TimeInterval.js#L72">Core/TimeInterval.js 72</a>
</div>
</h4>
</div>
<div class="description">
An interval defined by a start and a stop time; optionally including those times as part of the interval. Arbitrary data can optionally be associated with each instance for used with <a href="TimeIntervalCollection.html"><code>TimeIntervalCollection</code></a>.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last">
<span class="optional">optional</span>
Object with the following properties:
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>start</code></td>
<td class="type">
<span class="param-type"><a href="JulianDate.html">JulianDate</a></span>
</td>
<td class="default">
<code class="language-javascript">new JulianDate()</code>
</td>
<td class="description last">
<span class="optional">optional</span>
The start time of the interval.</td>
</tr>
<tr>
<td class="name"><code>stop</code></td>
<td class="type">
<span class="param-type"><a href="JulianDate.html">JulianDate</a></span>
</td>
<td class="default">
<code class="language-javascript">new JulianDate()</code>
</td>
<td class="description last">
<span class="optional">optional</span>
The stop time of the interval.</td>
</tr>
<tr>
<td class="name"><code>isStartIncluded</code></td>
<td class="type">
<span class="param-type">Boolean</span>
</td>
<td class="default">
<code class="language-javascript">true</code>
</td>
<td class="description last">
<span class="optional">optional</span>
<code>true</code> if <code>options.start</code> is included in the interval, <code>false</code> otherwise.</td>
</tr>
<tr>
<td class="name"><code>isStopIncluded</code></td>
<td class="type">
<span class="param-type">Boolean</span>
</td>
<td class="default">
<code class="language-javascript">true</code>
</td>
<td class="description last">
<span class="optional">optional</span>
<code>true</code> if <code>options.stop</code> is included in the interval, <code>false</code> otherwise.</td>
</tr>
<tr>
<td class="name"><code>data</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="default">
</td>
<td class="description last">
<span class="optional">optional</span>
Arbitrary data associated with this interval.</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
<h5>Examples:</h5>
<pre><code class="language-javascript">// Create an instance that spans August 1st, 1980 and is associated // with a Cartesian position. var timeInterval = new Cesium.TimeInterval({ start : Cesium.JulianDate.fromIso8601('1980-08-01T00:00:00Z'), stop : Cesium.JulianDate.fromIso8601('1980-08-02T00:00:00Z'), isStartIncluded : true, isStopIncluded : false, data : Cesium.Cartesian3.fromDegrees(39.921037, -75.170082) });</code></pre>
<pre><code class="language-javascript">// Create two instances from ISO 8601 intervals with associated numeric data // then compute their intersection, summing the data they contain. var left = Cesium.TimeInterval.fromIso8601({ iso8601 : '2000/2010', data : 2 }); var right = Cesium.TimeInterval.fromIso8601({ iso8601 : '1995/2005', data : 3 }); //The result of the below intersection will be an interval equivalent to //var intersection = Cesium.TimeInterval.fromIso8601({ // iso8601 : '2000/2005', // data : 5 //}); var intersection = new Cesium.TimeInterval(); Cesium.TimeInterval.intersect(left, right, intersection, function(leftData, rightData) { return leftData + rightData; });</code></pre>
<pre><code class="language-javascript">// Check if an interval contains a specific time. var dateToCheck = Cesium.JulianDate.fromIso8601('1982-09-08T11:30:00Z'); var containsDate = Cesium.TimeInterval.contains(timeInterval, dateToCheck);</code></pre>
</dl>
</div>
<h3 class="subsection-title">Members</h3>
<div class="nameContainer">
<h4 class="name" id=".EMPTY">
<a href="#.EMPTY" class="doc-link"></a>
<span class="type-signature attribute-static">static</span><span class="type-signature attribute-constant">constant</span>Cesium.TimeInterval.EMPTY<span class="type-signature"> : <a href="TimeInterval.html">TimeInterval</a></span>
<div class="source-link rightLinks">
<a href="https://github.com/AnalyticalGraphicsInc/cesium/blob/1.58/Source/Core/TimeInterval.js#L386">Core/TimeInterval.js 386</a>
</div>
</h4>
</div>
<div class="description">
An immutable empty interval.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id="data">
<a href="#data" class="doc-link"></a>
data<span class="type-signature"> : *</span>
<div class="source-link rightLinks">
<a href="https://github.com/AnalyticalGraphicsInc/cesium/blob/1.58/Source/Core/TimeInterval.js#L90">Core/TimeInterval.js 90</a>
</div>
</h4>
</div>
<div class="description">
Gets or sets the data associated with this interval.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id="isEmpty">
<a href="#isEmpty" class="doc-link"></a>
<span class="type-signature attribute-readonly">readonly</span>isEmpty<span class="type-signature"> : Boolean</span>
<div class="source-link rightLinks">
<a href="https://github.com/AnalyticalGraphicsInc/cesium/blob/1.58/Source/Core/TimeInterval.js#L114">Core/TimeInterval.js 114</a>
</div>
</h4>
</div>
<div class="description">
Gets whether or not this interval is empty.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id="isStartIncluded">
<a href="#isStartIncluded" class="doc-link"></a>
isStartIncluded<span class="type-signature"> : Boolean</span>
<div class="source-link rightLinks">
<a href="https://github.com/AnalyticalGraphicsInc/cesium/blob/1.58/Source/Core/TimeInterval.js#L97">Core/TimeInterval.js 97</a>
</div>
</h4>
</div>
<div class="description">
Gets or sets whether or not the start time is included in this interval.
</div>
<dl class="details">
<span class="details-header">Default Value:</span>
<code class="language-javascript">true</code>
</dl>
<div class="nameContainer">
<h4 class="name" id="isStopIncluded">
<a href="#isStopIncluded" class="doc-link"></a>
isStopIncluded<span class="type-signature"> : Boolean</span>
<div class="source-link rightLinks">
<a href="https://github.com/AnalyticalGraphicsInc/cesium/blob/1.58/Source/Core/TimeInterval.js#L104">Core/TimeInterval.js 104</a>
</div>
</h4>
</div>
<div class="description">
Gets or sets whether or not the stop time is included in this interval.
</div>
<dl class="details">
<span class="details-header">Default Value:</span>
<code class="language-javascript">true</code>
</dl>
<div class="nameContainer">
<h4 class="name" id="start">
<a href="#start" class="doc-link"></a>
start<span class="type-signature"> : <a href="JulianDate.html">JulianDate</a></span>
<div class="source-link rightLinks">
<a href="https://github.com/AnalyticalGraphicsInc/cesium/blob/1.58/Source/Core/TimeInterval.js#L78">Core/TimeInterval.js 78</a>
</div>
</h4>
</div>
<div class="description">
Gets or sets the start time of this interval.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id="stop">
<a href="#stop" class="doc-link"></a>
stop<span class="type-signature"> : <a href="JulianDate.html">JulianDate</a></span>
<div class="source-link rightLinks">
<a href="https://github.com/AnalyticalGraphicsInc/cesium/blob/1.58/Source/Core/TimeInterval.js#L84">Core/TimeInterval.js 84</a>
</div>
</h4>
</div>
<div class="description">
Gets or sets the stop time of this interval.
</div>
<dl class="details">
</dl>
<h3 class="subsection-title">Methods</h3>
<div class="nameContainer">
<h4 class="name" id=".clone">
<a href="#.clone" class="doc-link"></a>
<span class="type-signature attribute-static">static</span>Cesium.TimeInterval.clone<span class="signature">(<span class="optional">timeInterval</span>, <span class="optional">result</span>)</span> &rarr; <span class="type-signature returnType"><a href="TimeInterval.html">TimeInterval</a></span>
<div class="source-link rightLinks">
<a href="https://github.com/AnalyticalGraphicsInc/cesium/blob/1.58/Source/Core/TimeInterval.js#L198">Core/TimeInterval.js 198</a>
</div>
</h4>
</div>
<div class="description">
Duplicates the provided instance.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>timeInterval</code></td>
<td class="type">
<span class="param-type"><a href="TimeInterval.html">TimeInterval</a></span>
</td>
<td class="description last">
<span class="optional">optional</span>
The instance to clone.</td>
</tr>
<tr>
<td class="name"><code>result</code></td>
<td class="type">
<span class="param-type"><a href="TimeInterval.html">TimeInterval</a></span>
</td>
<td class="description last">
<span class="optional">optional</span>
An existing instance to use for the result.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
The modified result parameter or a new instance if none was provided.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".contains">
<a href="#.contains" class="doc-link"></a>
<span class="type-signature attribute-static">static</span>Cesium.TimeInterval.contains<span class="signature">(timeInterval, julianDate)</span> &rarr; <span class="type-signature returnType">Boolean</span>
<div class="source-link rightLinks">
<a href="https://github.com/AnalyticalGraphicsInc/cesium/blob/1.58/Source/Core/TimeInterval.js#L312">Core/TimeInterval.js 312</a>
</div>
</h4>
</div>
<div class="description">
Checks if the specified date is inside the provided interval.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>timeInterval</code></td>
<td class="type">
<span class="param-type"><a href="TimeInterval.html">TimeInterval</a></span>
</td>
<td class="description last">
The interval.</td>
</tr>
<tr>
<td class="name"><code>julianDate</code></td>
<td class="type">
<span class="param-type"><a href="JulianDate.html">JulianDate</a></span>
</td>
<td class="description last">
The date to check.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
<code>true</code> if the interval contains the specified date, <code>false</code> otherwise.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".equals">
<a href="#.equals" class="doc-link"></a>
<span class="type-signature attribute-static">static</span>Cesium.TimeInterval.equals<span class="signature">(<span class="optional">left</span>, <span class="optional">right</span>, <span class="optional">dataComparer</span>)</span> &rarr; <span class="type-signature returnType">Boolean</span>
<div class="source-link rightLinks">
<a href="https://github.com/AnalyticalGraphicsInc/cesium/blob/1.58/Source/Core/TimeInterval.js#L221">Core/TimeInterval.js 221</a>
</div>
</h4>
</div>
<div class="description">
Compares two instances and returns <code>true</code> if they are equal, <code>false</code> otherwise.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>left</code></td>
<td class="type">
<span class="param-type"><a href="TimeInterval.html">TimeInterval</a></span>
</td>
<td class="description last">
<span class="optional">optional</span>
The first instance.</td>
</tr>
<tr>
<td class="name"><code>right</code></td>
<td class="type">
<span class="param-type"><a href="TimeInterval.html">TimeInterval</a></span>
</td>
<td class="description last">
<span class="optional">optional</span>
The second instance.</td>
</tr>
<tr>
<td class="name"><code>dataComparer</code></td>
<td class="type">
<span class="param-type"><a href="TimeInterval.html#~DataComparer">TimeInterval~DataComparer</a></span>
</td>
<td class="description last">
<span class="optional">optional</span>
A function which compares the data of the two intervals. If omitted, reference equality is used.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
<code>true</code> if the dates are equal; otherwise, <code>false</code>.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".equalsEpsilon">
<a href="#.equalsEpsilon" class="doc-link"></a>
<span class="type-signature attribute-static">static</span>Cesium.TimeInterval.equalsEpsilon<span class="signature">(<span class="optional">left</span>, <span class="optional">right</span>, epsilon, <span class="optional">dataComparer</span>)</span> &rarr; <span class="type-signature returnType">Boolean</span>
<div class="source-link rightLinks">
<a href="https://github.com/AnalyticalGraphicsInc/cesium/blob/1.58/Source/Core/TimeInterval.js#L244">Core/TimeInterval.js 244</a>
</div>
</h4>
</div>
<div class="description">
Compares two instances and returns <code>true</code> if they are within <code>epsilon</code> seconds of each other. That is, in order for the dates to be considered equal (and for this function to return <code>true</code>), the absolute value of the difference between them, in seconds, must be less than <code>epsilon</code>.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>left</code></td>
<td class="type">
<span class="param-type"><a href="TimeInterval.html">TimeInterval</a></span>
</td>
<td class="description last">
<span class="optional">optional</span>
The first instance.</td>
</tr>
<tr>
<td class="name"><code>right</code></td>
<td class="type">
<span class="param-type"><a href="TimeInterval.html">TimeInterval</a></span>
</td>
<td class="description last">
<span class="optional">optional</span>
The second instance.</td>
</tr>
<tr>
<td class="name"><code>epsilon</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The maximum number of seconds that should separate the two instances.</td>
</tr>
<tr>
<td class="name"><code>dataComparer</code></td>
<td class="type">
<span class="param-type"><a href="TimeInterval.html#~DataComparer">TimeInterval~DataComparer</a></span>
</td>
<td class="description last">
<span class="optional">optional</span>
A function which compares the data of the two intervals. If omitted, reference equality is used.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
<code>true</code> if the two dates are within <code>epsilon</code> seconds of each other; otherwise <code>false</code>.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".fromIso8601">
<a href="#.fromIso8601" class="doc-link"></a>
<span class="type-signature attribute-static">static</span>Cesium.TimeInterval.fromIso8601<span class="signature">(options, <span class="optional">result</span>)</span> &rarr; <span class="type-signature returnType"><a href="TimeInterval.html">TimeInterval</a></span>
<div class="source-link rightLinks">
<a href="https://github.com/AnalyticalGraphicsInc/cesium/blob/1.58/Source/Core/TimeInterval.js#L143">Core/TimeInterval.js 143</a>
</div>
</h4>
</div>
<div class="description">
Creates a new instance from a <a href="http://en.wikipedia.org/wiki/ISO_8601">ISO 8601</a> interval.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last">
Object with the following properties:
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>iso8601</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="default">
</td>
<td class="description last">
An ISO 8601 interval.</td>
</tr>
<tr>
<td class="name"><code>isStartIncluded</code></td>
<td class="type">
<span class="param-type">Boolean</span>
</td>
<td class="default">
<code class="language-javascript">true</code>
</td>
<td class="description last">
<span class="optional">optional</span>
<code>true</code> if <code>options.start</code> is included in the interval, <code>false</code> otherwise.</td>
</tr>
<tr>
<td class="name"><code>isStopIncluded</code></td>
<td class="type">
<span class="param-type">Boolean</span>
</td>
<td class="default">
<code class="language-javascript">true</code>
</td>
<td class="description last">
<span class="optional">optional</span>
<code>true</code> if <code>options.stop</code> is included in the interval, <code>false</code> otherwise.</td>
</tr>
<tr>
<td class="name"><code>data</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="default">
</td>
<td class="description last">
<span class="optional">optional</span>
Arbitrary data associated with this interval.</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="name"><code>result</code></td>
<td class="type">
<span class="param-type"><a href="TimeInterval.html">TimeInterval</a></span>
</td>
<td class="description last">
<span class="optional">optional</span>
An existing instance to use for the result.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
The modified result parameter or a new instance if none was provided.
</div>
<h5>Throws:</h5>
<ul>
<li>
<div class="param-desc">
DeveloperError if options.iso8601 does not match proper formatting.
</div>
</li>
</ul>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".intersect">
<a href="#.intersect" class="doc-link"></a>
<span class="type-signature attribute-static">static</span>Cesium.TimeInterval.intersect<span class="signature">(left, <span class="optional">right</span>, result, <span class="optional">mergeCallback</span>)</span> &rarr; <span class="type-signature returnType"><a href="TimeInterval.html">TimeInterval</a></span>
<div class="source-link rightLinks">
<a href="https://github.com/AnalyticalGraphicsInc/cesium/blob/1.58/Source/Core/TimeInterval.js#L268">Core/TimeInterval.js 268</a>
</div>
</h4>
</div>
<div class="description">
Computes the intersection of two intervals, optionally merging their data.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>left</code></td>
<td class="type">
<span class="param-type"><a href="TimeInterval.html">TimeInterval</a></span>
</td>
<td class="description last">
The first interval.</td>
</tr>
<tr>
<td class="name"><code>right</code></td>
<td class="type">
<span class="param-type"><a href="TimeInterval.html">TimeInterval</a></span>
</td>
<td class="description last">
<span class="optional">optional</span>
The second interval.</td>
</tr>
<tr>
<td class="name"><code>result</code></td>
<td class="type">
<span class="param-type"><a href="TimeInterval.html">TimeInterval</a></span>
</td>
<td class="description last">
An existing instance to use for the result.</td>
</tr>
<tr>
<td class="name"><code>mergeCallback</code></td>
<td class="type">
<span class="param-type"><a href="TimeInterval.html#~MergeCallback">TimeInterval~MergeCallback</a></span>
</td>
<td class="description last">
<span class="optional">optional</span>
A function which merges the data of the two intervals. If omitted, the data from the left interval will be used.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
The modified result parameter.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".toIso8601">
<a href="#.toIso8601" class="doc-link"></a>
<span class="type-signature attribute-static">static</span>Cesium.TimeInterval.toIso8601<span class="signature">(timeInterval, <span class="optional">precision</span>)</span> &rarr; <span class="type-signature returnType">String</span>
<div class="source-link rightLinks">
<a href="https://github.com/AnalyticalGraphicsInc/cesium/blob/1.58/Source/Core/TimeInterval.js#L183">Core/TimeInterval.js 183</a>
</div>
</h4>
</div>
<div class="description">
Creates an ISO8601 representation of the provided interval.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>timeInterval</code></td>
<td class="type">
<span class="param-type"><a href="TimeInterval.html">TimeInterval</a></span>
</td>
<td class="description last">
The interval to be converted.</td>
</tr>
<tr>
<td class="name"><code>precision</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
<span class="optional">optional</span>
The number of fractional digits used to represent the seconds component. By default, the most precise representation is used.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
The ISO8601 representation of the provided interval.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id="clone">
<a href="#clone" class="doc-link"></a>
clone<span class="signature">(<span class="optional">result</span>)</span> &rarr; <span class="type-signature returnType"><a href="TimeInterval.html">TimeInterval</a></span>
<div class="source-link rightLinks">
<a href="https://github.com/AnalyticalGraphicsInc/cesium/blob/1.58/Source/Core/TimeInterval.js#L341">Core/TimeInterval.js 341</a>
</div>
</h4>
</div>
<div class="description">
Duplicates this instance.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>result</code></td>
<td class="type">
<span class="param-type"><a href="TimeInterval.html">TimeInterval</a></span>
</td>
<td class="description last">
<span class="optional">optional</span>
An existing instance to use for the result.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
The modified result parameter or a new instance if none was provided.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id="equals">
<a href="#equals" class="doc-link"></a>
equals<span class="signature">(<span class="optional">right</span>, <span class="optional">dataComparer</span>)</span> &rarr; <span class="type-signature returnType">Boolean</span>
<div class="source-link rightLinks">
<a href="https://github.com/AnalyticalGraphicsInc/cesium/blob/1.58/Source/Core/TimeInterval.js#L353">Core/TimeInterval.js 353</a>
</div>
</h4>
</div>
<div class="description">
Compares this instance against the provided instance componentwise and returns <code>true</code> if they are equal, <code>false</code> otherwise.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>right</code></td>
<td class="type">
<span class="param-type"><a href="TimeInterval.html">TimeInterval</a></span>
</td>
<td class="description last">
<span class="optional">optional</span>
The right hand side interval.</td>
</tr>
<tr>
<td class="name"><code>dataComparer</code></td>
<td class="type">
<span class="param-type"><a href="TimeInterval.html#~DataComparer">TimeInterval~DataComparer</a></span>
</td>
<td class="description last">
<span class="optional">optional</span>
A function which compares the data of the two intervals. If omitted, reference equality is used.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
<code>true</code> if they are equal, <code>false</code> otherwise.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id="equalsEpsilon">
<a href="#equalsEpsilon" class="doc-link"></a>
equalsEpsilon<span class="signature">(<span class="optional">right</span>, epsilon, <span class="optional">dataComparer</span>)</span> &rarr; <span class="type-signature returnType">Boolean</span>
<div class="source-link rightLinks">
<a href="https://github.com/AnalyticalGraphicsInc/cesium/blob/1.58/Source/Core/TimeInterval.js#L367">Core/TimeInterval.js 367</a>
</div>
</h4>
</div>
<div class="description">
Compares this instance against the provided instance componentwise and returns <code>true</code> if they are within the provided epsilon, <code>false</code> otherwise.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>right</code></td>
<td class="type">
<span class="param-type"><a href="TimeInterval.html">TimeInterval</a></span>
</td>
<td class="description last">
<span class="optional">optional</span>
The right hand side interval.</td>
</tr>
<tr>
<td class="name"><code>epsilon</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The epsilon to use for equality testing.</td>
</tr>
<tr>
<td class="name"><code>dataComparer</code></td>
<td class="type">
<span class="param-type"><a href="TimeInterval.html#~DataComparer">TimeInterval~DataComparer</a></span>
</td>
<td class="description last">
<span class="optional">optional</span>
A function which compares the data of the two intervals. If omitted, reference equality is used.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
<code>true</code> if they are within the provided epsilon, <code>false</code> otherwise.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id="toString">
<a href="#toString" class="doc-link"></a>
toString<span class="signature">()</span> &rarr; <span class="type-signature returnType">String</span>
<div class="source-link rightLinks">
<a href="https://github.com/AnalyticalGraphicsInc/cesium/blob/1.58/Source/Core/TimeInterval.js#L376">Core/TimeInterval.js 376</a>
</div>
</h4>
</div>
<div class="description">
Creates a string representing this TimeInterval in ISO8601 format.
</div>
<h5>Returns:</h5>
<div class="param-desc">
A string representing this TimeInterval in ISO8601 format.
</div>
<dl class="details">
</dl>
<h3 class="subsection-title">Type Definitions</h3>
<div class="nameContainer">
<h4 class="name" id="~DataComparer">
<a href="#~DataComparer" class="doc-link"></a>
DataComparer<span class="signature">(leftData, rightData)</span> &rarr; <span class="type-signature returnType">Boolean</span>
<div class="source-link rightLinks">
<a href="https://github.com/AnalyticalGraphicsInc/cesium/blob/1.58/Source/Core/TimeInterval.js#L402">Core/TimeInterval.js 402</a>
</div>
</h4>
</div>
<div class="description">
Function interface for comparing interval data.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>leftData</code></td>
<td class="type">
<span class="param-type">*</span>
</td>
<td class="description last">
The first data instance.</td>
</tr>
<tr>
<td class="name"><code>rightData</code></td>
<td class="type">
<span class="param-type">*</span>
</td>
<td class="description last">
The second data instance.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
<code>true</code> if the provided instances are equal, <code>false</code> otherwise.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id="~MergeCallback">
<a href="#~MergeCallback" class="doc-link"></a>
MergeCallback<span class="signature">(leftData, rightData)</span> &rarr; <span class="type-signature returnType">*</span>
<div class="source-link rightLinks">
<a href="https://github.com/AnalyticalGraphicsInc/cesium/blob/1.58/Source/Core/TimeInterval.js#L393">Core/TimeInterval.js 393</a>
</div>
</h4>
</div>
<div class="description">
Function interface for merging interval data.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>leftData</code></td>
<td class="type">
<span class="param-type">*</span>
</td>
<td class="description last">
The first data instance.</td>
</tr>
<tr>
<td class="name"><code>rightData</code></td>
<td class="type">
<span class="param-type">*</span>
</td>
<td class="description last">
The second data instance.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
The result of merging the two data instances.
</div>
<dl class="details">
</dl>
</article>
</section>
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.2</a>
</footer>
</div>
<div class="nav">
<div class="menu">
<input type="text" class="classFilter" id="ClassFilter" placeholder="Search">
<ul id="ClassList"><li data-name="Animation"><a href="Animation.html">Animation</a></li><li data-name="AnimationViewModel"><a href="AnimationViewModel.html">AnimationViewModel</a></li><li data-name="Appearance"><a href="Appearance.html">Appearance</a></li><li data-name="ArcGisMapServerImageryProvider"><a href="ArcGisMapServerImageryProvider.html">ArcGisMapServerImageryProvider</a></li><li data-name="ArcType"><a href="ArcType.html">ArcType</a></li><li data-name="AssociativeArray"><a href="AssociativeArray.html">AssociativeArray</a></li><li data-name="AxisAlignedBoundingBox"><a href="AxisAlignedBoundingBox.html">AxisAlignedBoundingBox</a></li><li data-name="barycentricCoordinates"><a href="barycentricCoordinates.html">barycentricCoordinates</a></li><li data-name="BaseLayerPicker"><a href="BaseLayerPicker.html">BaseLayerPicker</a></li><li data-name="BaseLayerPickerViewModel"><a href="BaseLayerPickerViewModel.html">BaseLayerPickerViewModel</a></li><li data-name="Billboard"><a href="Billboard.html">Billboard</a></li><li data-name="BillboardCollection"><a href="BillboardCollection.html">BillboardCollection</a></li><li data-name="BillboardGraphics"><a href="BillboardGraphics.html">BillboardGraphics</a></li><li data-name="BillboardVisualizer"><a href="BillboardVisualizer.html">BillboardVisualizer</a></li><li data-name="binarySearch"><a href="binarySearch.html">binarySearch</a></li><li data-name="BingMapsApi"><a href="BingMapsApi.html">BingMapsApi</a></li><li data-name="BingMapsGeocoderService"><a href="BingMapsGeocoderService.html">BingMapsGeocoderService</a></li><li data-name="BingMapsImageryProvider"><a href="BingMapsImageryProvider.html">BingMapsImageryProvider</a></li><li data-name="BingMapsStyle"><a href="BingMapsStyle.html">BingMapsStyle</a></li><li data-name="BlendEquation"><a href="BlendEquation.html">BlendEquation</a></li><li data-name="BlendFunction"><a href="BlendFunction.html">BlendFunction</a></li><li data-name="BlendingState"><a href="BlendingState.html">BlendingState</a></li><li data-name="BlendOption"><a href="BlendOption.html">BlendOption</a></li><li data-name="BoundingRectangle"><a href="BoundingRectangle.html">BoundingRectangle</a></li><li data-name="BoundingSphere"><a href="BoundingSphere.html">BoundingSphere</a></li><li data-name="BoxEmitter"><a href="BoxEmitter.html">BoxEmitter</a></li><li data-name="BoxGeometry"><a href="BoxGeometry.html">BoxGeometry</a></li><li data-name="BoxGeometryUpdater"><a href="BoxGeometryUpdater.html">BoxGeometryUpdater</a></li><li data-name="BoxGraphics"><a href="BoxGraphics.html">BoxGraphics</a></li><li data-name="BoxOutlineGeometry"><a href="BoxOutlineGeometry.html">BoxOutlineGeometry</a></li><li data-name="CallbackProperty"><a href="CallbackProperty.html">CallbackProperty</a></li><li data-name="Camera"><a href="Camera.html">Camera</a></li><li data-name="CameraEventAggregator"><a href="CameraEventAggregator.html">CameraEventAggregator</a></li><li data-name="CameraEventType"><a href="CameraEventType.html">CameraEventType</a></li><li data-name="cancelAnimationFrame"><a href="cancelAnimationFrame.html">cancelAnimationFrame</a></li><li data-name="Cartesian2"><a href="Cartesian2.html">Cartesian2</a></li><li data-name="Cartesian3"><a href="Cartesian3.html">Cartesian3</a></li><li data-name="Cartesian4"><a href="Cartesian4.html">Cartesian4</a></li><li data-name="Cartographic"><a href="Cartographic.html">Cartographic</a></li><li data-name="CartographicGeocoderService"><a href="CartographicGeocoderService.html">CartographicGeocoderService</a></li><li data-name="CatmullRomSpline"><a href="CatmullRomSpline.html">CatmullRomSpline</a></li><li data-name="Cesium3DTile"><a href="Cesium3DTile.html">Cesium3DTile</a></li><li data-name="Cesium3DTileColorBlendMode"><a href="Cesium3DTileColorBlendMode.html">Cesium3DTileColorBlendMode</a></li><li data-name="Cesium3DTileContent"><a href="Cesium3DTileContent.html">Cesium3DTileContent</a></li><li data-name="Cesium3DTileFeature"><a href="Cesium3DTileFeature.html">Cesium3DTileFeature</a></li><li data-name="Cesium3DTilePointFeature"><a href="Cesium3
</div>
</div>
<script>
if (window.frameElement) {
document.body.className = 'embedded';
var ele = document.createElement('a');
ele.className = 'popout';
ele.target = '_blank';
ele.href = window.location.href;
ele.title = 'Pop out';
document.getElementById('main').appendChild(ele);
}
// Set targets on external links. Sandcastle and GitHub shouldn't be embedded in any iframe.
Array.prototype.forEach.call(document.getElementsByTagName('a'), function(a) {
if (/^https?:/i.test(a.getAttribute('href'))) {
a.target='_blank';
}
});
</script>
<script src="javascript/prism.js"></script>
<script src="javascript/cesiumDoc.js"></script>
</body>
</html>