Light.CreateSunLight Method (Double, Double, Double)

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
)
Public Shared Function CreateSunLight ( 
	northAngleDegrees As Double,
	azimuthDegrees As Double,
	altitudeDegrees As Double
) As Light

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.8
See Also