SceneSpotLight Class
A light at a point, that shines toward another point: feSpotLight of SVG.
public sealed class SceneSpotLight : SceneLightSource- Inheritance
SceneLightSourceSceneSpotLight
Constructors
| Name | Description |
|---|---|
| SceneSpotLight(double, double, double, double, double, double) | Initializes a new instance of the SceneSpotLight class. |
SceneSpotLight(double, double, double, double, double, double)
SceneSpotLight.csInitializes a new instance of the SceneSpotLight class.
public SceneSpotLight(double x, double y, double z, double pointsAtX, double pointsAtY, double pointsAtZ)Parameters
xdouble- The x of the light.
ydouble- The y of the light.
zdouble- The height of the light above the plane.
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.
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. The default is 1; the image renderer limits it to 128. |
| 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
SceneSpotLight.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
SceneSpotLight.csPointsAtY
SceneSpotLight.csPointsAtZ
SceneSpotLight.csSpecularExponent
SceneSpotLight.csGets how fast the light fades away from its axis: specularExponent. The default is 1; the image renderer limits it to 128.
public double SpecularExponent { get; init; }Property value
Exceptions
ArgumentException- The value is not a finite number.
ArgumentOutOfRangeException- The value is negative.