setSunTime Method

Adjust the solar light direction based on a date and time at a geographic location. This replaces this.lights with a copy that records the time point and the computed direction.

setSunTime(timePoint: number, location: Cartographic | IModel): void

@see - sunTime to get the current sun time.

@note If location is an iModel lacking an EcefLocation, a location in Exton, Pennsylvania will be used to compute the light direction instead.

Parameter Type Description
timePoint number The time in UNIX milliseconds.
location Cartographic | IModel The geographic location; or an iModel, in which case the iModel's EcefLocation is used.

Returns - void

Defined in

Last Updated: 17 December, 2024