DistantLight Class
A light infinitely far away, whose rays are parallel: feDistantLight of SVG.
public sealed class DistantLight : FilterLightSourceRemarks
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
FilterLightSourceDistantLight
Constructors
| Name | Description |
|---|---|
| DistantLight(double, double) | Initializes a new instance of the DistantLight class. |
DistantLight(double, double)
DistantLight.csInitializes a new instance of the DistantLight class.
Parameters
azimuthdouble- The direction of the light in the plane, in degrees, clockwise from the x axis on the canvas:
azimuth. elevationdouble- The angle of the light above the plane, in degrees:
elevation.
Exceptions
ArgumentException- An angle is not a finite number.
Properties
| Name | Description |
|---|---|
| Azimuth | Gets the direction of the light in the plane, in degrees. |
| Elevation | Gets the angle of the light above the plane, in degrees. |