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

Rhino for Windows

Supported in: 6.7
See Also