Click or drag to resize

LightCreateSunLight Method (Double, Double, Double)

Constructs a light that represents the Sun.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 5.0
Syntax
public static Light CreateSunLight(
	double northAngleDegrees,
	double azimuthDegrees,
	double altitudeDegrees
)

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.
azimuthDegrees
Type: SystemDouble
The Azimuth angle value in degrees. Azimuth is the compass angle from North.
altitudeDegrees
Type: SystemDouble
The Altitude angle in degrees. Altitude is the angle above the ground plane.

Return Value

Type: Light
A new sun light.
Exceptions
ExceptionCondition
RdkNotLoadedExceptionIf the RDK is not loaded.
See Also