text
stringlengths
0
8.81k
|
ImageBitmap
The image to extract pixels from.
width
number
The width of the image. If not defined, then image.width is assigned.
height
number
The height of the image. If not defined, then image.height is assigned.
Returns:
The pixels of the image.
getTimestamp() → number
engine/Source/Core/getTimestamp.js 1
Gets a timestamp that can be used in measuring the time between events. Timestamps
are expressed in milliseconds, but it is not specified what the milliseconds are
measured from. This function uses performance.now() if it is available, or Date.now()
otherwise.
Returns:
The timestamp in milliseconds since some unspecified reference time.
isLeapYear(year) → boolean
engine/Source/Core/isLeapYear.js 3
Determines if a given date is a leap year.
Name
Type
Description
year
number
The year to be tested.
Returns:
True if year is a leap year.
Example:
const leapYear = Cesium.isLeapYear(2000); // true
async loadGltfJson()