SpotLight Class
A light at a point, that shines toward another point: feSpotLight of SVG.
public sealed class SpotLight : FilterLightSourceRemarks
The light is the one of a PointLight, multiplied by max(-L.S, 0)^SpecularExponent, with L the unit vector toward the light and S the unit vector from the light to the point it shines at; outside SpotLight.LimitingConeAngle, where -L.S is less than the cosine of that angle, there is no light.
- Inheritance
FilterLightSourceSpotLight
Constructors
| Name | Description |
|---|---|
| SpotLight(double, double, double, double, double, double) | Initializes a new instance of the SpotLight class. |
SpotLight(double, double, double, double, double, double)
SpotLight.csInitializes a new instance of the SpotLight class.
public SpotLight(double x, double y, double z, double pointsAtX, double pointsAtY, double pointsAtZ)Parameters
xdouble- The x of the light, in the drawing.
ydouble- The y of the light, in the drawing.
zdouble- The height of the light above the plane, in units of the drawing.
pointsAtXdouble- The x of the point the light shines at:
pointsAtX. pointsAtYdouble- The y of the point the light shines at.
pointsAtZdouble- The height of the point the light shines at.
Exceptions
ArgumentException- A coordinate is not a finite number.
ArgumentOutOfRangeException- The magnitude of a coordinate exceeds 16777216.
Properties
| Name | Description |
|---|---|
| LimitingConeAngle | Gets the angle between the axis of the light and the edge of its cone, in degrees, or null (the default) for no cone: limitingConeAngle. |
| PointsAtX | Gets the x of the point the light shines at. |
| PointsAtY | Gets the y of the point the light shines at. |
| PointsAtZ | Gets the height of the point the light shines at. |
| SpecularExponent | Gets how fast the light fades away from its axis: specularExponent. Defaults to 1. |
| X | Gets the x of the light. |
| Y | Gets the y of the light. |
| Z | Gets the height of the light above the plane. |
LimitingConeAngle
SpotLight.csGets the angle between the axis of the light and the edge of its cone, in degrees, or null (the default) for no cone: limitingConeAngle.
public double? LimitingConeAngle { get; init; }PointsAtX
SpotLight.csPointsAtY
SpotLight.csPointsAtZ
SpotLight.csSpecularExponent
SpotLight.csGets how fast the light fades away from its axis: specularExponent. Defaults to 1.
public double SpecularExponent { get; init; }Property value
Exceptions
ArgumentException- The value is not a finite number.
ArgumentOutOfRangeException- The value is negative or exceeds 128.