-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1080 from AnalyticalGraphicsInc/dynamicScene-prop…
…erties Refactor DyanmicScene Properties
- Loading branch information
Showing
153 changed files
with
7,090 additions
and
9,026 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/*global define*/ | ||
define(['./DeveloperError'], function(DeveloperError) { | ||
"use strict"; | ||
|
||
/** | ||
* The interface for interpolation algorithms. | ||
* @exports InterpolationAlgorithm | ||
* | ||
* @see LagrangePolynomialApproximation | ||
* @see LinearApproximation | ||
* @see HermitePolynomialApproximation | ||
*/ | ||
var InterpolationAlgorithm = {}; | ||
|
||
/** | ||
* Gets the name of this interpolation algorithm. | ||
* @type {String} | ||
*/ | ||
InterpolationAlgorithm.type = undefined; | ||
|
||
/** | ||
* Given the desired degree, returns the number of data points required for interpolation. | ||
* @memberof InterpolationAlgorithm | ||
* | ||
* @param degree The desired degree of interpolation. | ||
* | ||
* @returns The number of required data points needed for the desired degree of interpolation. | ||
*/ | ||
InterpolationAlgorithm.getRequiredDataPoints = function(degree) { | ||
throw new DeveloperError('This function defines an interface and should not be called directly.'); | ||
}; | ||
|
||
/** | ||
* Interpolates values. | ||
* @memberof InterpolationAlgorithm | ||
* | ||
* @param {Number} x The independent variable for which the dependent variables will be interpolated. | ||
* | ||
* @param {Array} xTable The array of independent variables to use to interpolate. The values | ||
* in this array must be in increasing order and the same value must not occur twice in the array. | ||
* | ||
* @param {Array} yTable The array of dependent variables to use to interpolate. For a set of three | ||
* dependent values (p,q,w) at time 1 and time 2 this should be as follows: {p1, q1, w1, p2, q2, w2}. | ||
* | ||
* @param {Number} yStride The number of dependent variable values in yTable corresponding to | ||
* each independent variable value in xTable. | ||
* | ||
* @param {Array} [result] An existing array into which to store the result. | ||
* | ||
* @returns The array of interpolated values, or the result parameter if one was provided. | ||
*/ | ||
InterpolationAlgorithm.interpolateOrderZero = function(x, xTable, yTable, yStride, result) { | ||
throw new DeveloperError('This function defines an interface and should not be called directly.'); | ||
}; | ||
|
||
return InterpolationAlgorithm; | ||
}); |
Oops, something went wrong.