DistantLight Class

A light infinitely far away, whose rays are parallel: feDistantLight of SVG.

public sealed class DistantLight : FilterLightSource

Remarks

The unit vector toward the light is (cos(azimuth) cos(elevation), sin(azimuth) cos(elevation), sin(elevation)), with sines and cosines that do not come from the platform.

Inheritance
FilterLightSource DistantLight

Constructors

NameDescription
DistantLight(double, double)Initializes a new instance of the DistantLight class.

DistantLight(double, double)

DistantLight.cs

Initializes a new instance of the DistantLight class.

public DistantLight(double azimuth, double elevation)

Parameters

azimuth double
The direction of the light in the plane, in degrees, clockwise from the x axis on the canvas: azimuth.
elevation double
The angle of the light above the plane, in degrees: elevation.

Exceptions

ArgumentException
An angle is not a finite number.

Properties

NameDescription
AzimuthGets the direction of the light in the plane, in degrees.
ElevationGets the angle of the light above the plane, in degrees.

Gets the direction of the light in the plane, in degrees.

public double Azimuth { get; }

Property value

double

Gets the angle of the light above the plane, in degrees.

public double Elevation { get; }

Property value

double