SceneSpotLight Class

A light at a point, that shines toward another point: feSpotLight of SVG.

public sealed class SceneSpotLight : SceneLightSource
Inheritance
SceneLightSource SceneSpotLight

Constructors

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

SceneSpotLight(double, double, double, double, double, double)

SceneSpotLight.cs

Initializes a new instance of the SceneSpotLight class.

public SceneSpotLight(double x, double y, double z, double pointsAtX, double pointsAtY, double pointsAtZ)

Parameters

x double
The x of the light.
y double
The y of the light.
z double
The height of the light above the plane.
pointsAtX double
The x of the point the light shines at: pointsAtX.
pointsAtY double
The y of the point the light shines at.
pointsAtZ double
The height of the point the light shines at.

Exceptions

ArgumentException
A coordinate is not a finite number.

Properties

NameDescription
LimitingConeAngleGets the angle between the axis of the light and the edge of its cone, in degrees, or null (the default) for no cone: limitingConeAngle.
PointsAtXGets the x of the point the light shines at.
PointsAtYGets the y of the point the light shines at.
PointsAtZGets the height of the point the light shines at.
SpecularExponentGets how fast the light fades away from its axis: specularExponent. The default is 1; the image renderer limits it to 128.
XGets the x of the light.
YGets the y of the light.
ZGets the height of the light above the plane.

LimitingConeAngle

SceneSpotLight.cs

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.

public double? LimitingConeAngle { get; init; }

Property value

double?

Exceptions

ArgumentException
The value is not a finite number.

Gets the x of the point the light shines at.

public double PointsAtX { get; }

Property value

double

Gets the y of the point the light shines at.

public double PointsAtY { get; }

Property value

double

Gets the height of the point the light shines at.

public double PointsAtZ { get; }

Property value

double

SpecularExponent

SceneSpotLight.cs

Gets 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

double

Exceptions

ArgumentException
The value is not a finite number.
ArgumentOutOfRangeException
The value is negative.

Gets the x of the light.

public double X { get; }

Property value

double

Gets the y of the light.

public double Y { get; }

Property value

double

Gets the height of the light above the plane.

public double Z { get; }

Property value

double