Sha256: 54394c146b230f333179d466cb2babb3d5738c294edd4d8edbed91a3d86658b1
Contents?: true
Size: 1.15 KB
Versions: 2
Compression:
Stored size: 1.15 KB
Contents
/*global define*/ define(function() { "use strict"; /** * Represents a single value which does not change with regard to simulation time. * * @alias ConstantProperty * @constructor * * @see DynamicProperty */ var ConstantProperty = function(value) { this._value = value; this._clonable = typeof value !== 'undefined' && typeof value.clone === 'function'; }; /** * Gets the value of the property, optionally cloning it. * @memberof ConstantProperty * * @param {JulianDate} time The time for which to retrieve the value. This parameter is unused. * @param {Object} [result] The object to store the value into if the value is clonable. If the result is omitted or the value does not implement clone, the actual value is returned. * @returns The modified result parameter or the actual value instance if the value is not clonable. */ ConstantProperty.prototype.getValue = function(time, result) { var value = this._value; if (this._clonable) { return value.clone(result); } return value; }; return ConstantProperty; });
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cesium-0.19.0 | app/assets/javascripts/DynamicScene/ConstantProperty.js |
cesium-0.18.0 | app/assets/javascripts/DynamicScene/ConstantProperty.js |