ConstantProperty

ConstantProperty

new

A Property whose value never changes.

Parameters:
Name Type Description
value Object | Number | String The property value. This parameter is only required if the value is not a number or string and does not have a clone function.
Throws:
Example
//Create a constant value from a Cartesian2 instance.
var constantProperty = new ConstantProperty(new Cartesian2(10, 12));
See:
Source:

Methods

Compares this property to the provided property and returns true if they are equal, false otherwise.

Parameters:
Name Type Argument Description
other Property <optional>
The other property.
Returns:
Boolean true if left and right are equal, false otherwise.