M_Rhino_Geometry_Light_CreateSunLight_1 - mcneel/rhinocommon-api-docs GitHub Wiki
Constructs a light which simulates the Sun based on a given time and location on Earth.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0
C#
public static Light CreateSunLight(
double northAngleDegrees,
DateTime when,
double latitudeDegrees,
double longitudeDegrees
)
VB
Public Shared Function CreateSunLight (
northAngleDegrees As Double,
when As DateTime,
latitudeDegrees As Double,
longitudeDegrees 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. - when
- Type: System.DateTime
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: System.Double
The latitude, in degrees, of the location on Earth. - longitudeDegrees
- Type: System.Double
The longitude, in degrees, of the location on Earth.
Type: Light
A newly constructed light object.
Exception | Condition |
---|---|
RdkNotLoadedException | If the RDK is not loaded. |
Supported in: 6.0.16224.21491