Light.CreateSunLight Method (Double, DateTime, Double, Double)
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)
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 daytime 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.
Version Information

Rhino for Windows

Supported in: 6.7
See Also