M_Rhino_Geometry_Light_CreateSunLight_1 - mcneel/rhinocommon-api-docs GitHub Wiki

Light.CreateSunLight Method (Double, DateTime, Double, Double)

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

Syntax

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

Parameters

 

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.

Return Value

Type: Light
A newly constructed light object.

Exceptions

 

Exception Condition
RdkNotLoadedException If the RDK is not loaded.

Version Information

Supported in: 6.0.16224.21491

See Also

Reference

Light Class
CreateSunLight Overload
Rhino.Geometry Namespace

⚠️ **GitHub.com Fallback** ⚠️