class
SampledProperty extends Object with Property
Instance Constructors
-
new
SampledProperty(type: |[Dynamic, Packable], derivativeTypes: |[Array[Dynamic], Array[Packable]] = ???)
-
new
SampledProperty()
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
def
addSample(time: JulianDate, value: |[Double, Packable], derivatives: |[Array[Double], Array[Packable]] = ???): Dynamic
-
def
addSamples(times: Array[JulianDate], values: |[Array[Double], Array[Packable]], derivativeValues: Array[Array[Any]] = ???): Dynamic
-
def
addSamplesPackedArray(packedSamples: Array[Double], epoch: JulianDate = ???): Dynamic
-
final
def
asInstanceOf[T0]: T0
-
var
backwardExtrapolationDuration: Double
-
-
def
clone(): AnyRef
-
var
definitionChanged: Event
-
var
derivativeTypes: |[Array[Dynamic], Array[Packable]]
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(other: Property = ???): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
var
forwardExtrapolationDuration: Double
-
-
final
def
getClass(): Class[_]
-
def
getValue(time: JulianDate, result: Any = ???): Dynamic
-
def
hasOwnProperty(v: String): Boolean
-
def
hashCode(): Int
-
-
var
interpolationDegree: Double
-
var
isConstant: Boolean
-
final
def
isInstanceOf[T0]: Boolean
-
def
isPrototypeOf(v: Object): Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
propertyIsEnumerable(v: String): Boolean
-
def
setInterpolationOptions(options: InterpolationOptions = ???): Dynamic
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toLocaleString(): String
-
def
toString(): String
-
def
valueOf(): Any
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from Object
Inherited from Any
Inherited from AnyRef
Inherited from Any
A Property whose value is interpolated for a given time from the provided set of samples and specified interpolation algorithm and degree. alias SampledProperty
- {Number|Packable} type The type of property. - {Packable[]} [derivativeTypes] When supplied, indicates that samples will contain derivative information of the specified types.
//Create a simple numeric SampledProperty that uses third degree Hermite Polynomial Approximation var property = new Cesium.SampledProperty(Number); property.setInterpolationOptions({ interpolationDegree : 3, interpolationAlgorithm : Cesium.HermitePolynomialApproximation }); //Populate it with data property.addSample(Cesium.JulianDate.fromIso8601(
2012-08-01T00:00:00.00Z
), 1.0); property.addSample(Cesium.JulianDate.fromIso8601(2012-08-01T00:01:00.00Z
), 6.0); property.addSample(Cesium.JulianDate.fromIso8601(2012-08-01T00:02:00.00Z
), 12.0); property.addSample(Cesium.JulianDate.fromIso8601(2012-08-01T00:03:30.00Z
), 5.0); property.addSample(Cesium.JulianDate.fromIso8601(2012-08-01T00:06:30.00Z
), 2.0); //Samples can be added in any order. property.addSample(Cesium.JulianDate.fromIso8601(2012-08-01T00:00:30.00Z
), 6.2); //Retrieve an interpolated value var result = property.getValue(Cesium.JulianDate.fromIso8601(2012-08-01T00:02:34.00Z
));//Create a linearly interpolated Cartesian2 var property = new Cesium.SampledProperty(Cesium.Cartesian2); //Populate it with data property.addSample(Cesium.JulianDate.fromIso8601(
2012-08-01T00:00:00.00Z
), new Cesium.Cartesian2(0, 0)); property.addSample(Cesium.JulianDate.fromIso8601(2012-08-02T00:00:00.00Z
), new Cesium.Cartesian2(4, 7)); //Retrieve an interpolated value var result = property.getValue(Cesium.JulianDate.fromIso8601(2012-08-01T12:00:00.00Z
));SampledPositionProperty