Click or drag to resize

LightCreateSunLight Method (Double, DateTime, Double, Double)

Constructs a light which simulates the Sun based on a given time and location on Earth.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 5.0
Syntax
public static Light CreateSunLight(
	double northAngleDegrees,
	DateTime when,
	double latitudeDegrees,
	double longitudeDegrees
)

Parameters

northAngleDegrees
Type: SystemDouble
The angle of North in degrees. North is the angle between positive World Y axis and model North, as measured on World XY plane.
when
Type: SystemDateTime
The time of the measurement. The Kind property of DateTime specifies whether this is in local or universal time.

Local and Undefined date-time kinds in this argument are considered local.

latitudeDegrees
Type: SystemDouble
The latitude, in degrees, of the location on Earth.
longitudeDegrees
Type: SystemDouble
The longitude, in degrees, of the location on Earth.

Return Value

Type: Light
A newly constructed light object.
Exceptions
ExceptionCondition
RdkNotLoadedExceptionIf the RDK is not loaded.
See Also