LightCreateSunLight 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)
Since: 5.0
Syntaxpublic static Light CreateSunLight(
double northAngleDegrees,
DateTime when,
double latitudeDegrees,
double longitudeDegrees
)
Public Shared Function CreateSunLight (
northAngleDegrees As Double,
when As DateTime,
latitudeDegrees As Double,
longitudeDegrees 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. - when
- Type: SystemDateTime
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: SystemDouble
The latitude, in degrees, of the location on Earth. - longitudeDegrees
- Type: SystemDouble
The longitude, in degrees, of the location on Earth.
Return Value
Type:
LightA newly constructed light object.
Exceptions
See Also