M_Rhino_Geometry_Light_CreateSunLight_2 - mcneel/rhinocommon-api-docs GitHub Wiki
Constructs a light that represents the Sun.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0
C#
public static Light CreateSunLight(
double northAngleDegrees,
double azimuthDegrees,
double altitudeDegrees
)
VB
Public Shared Function CreateSunLight (
northAngleDegrees As Double,
azimuthDegrees As Double,
altitudeDegrees As Double
) As Light
- northAngleDegrees
- Type: System.Double
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: System.Double
The Azimuth angle value in degrees. Azimuth is the compass angle from North. - altitudeDegrees
- Type: System.Double
The Altitude angle in degrees. Altitude is the angle above the ground plane.
Type: Light
A new sun light.
Exception | Condition |
---|---|
RdkNotLoadedException | If the RDK is not loaded. |
Supported in: 6.0.16224.21491