PointLight Class

A light at a point, that shines in every direction: fePointLight of SVG.

public sealed class PointLight : FilterLightSource

Remarks

The vector toward the light from a pixel at (x, y) is (lx - x, ly - y, lz - surfaceScale A(x, y)), normalized.

Inheritance
FilterLightSource PointLight

Constructors

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

PointLight(double, double, double)

PointLight.cs

Initializes a new instance of the PointLight class.

public PointLight(double x, double y, double z)

Parameters

x double
The x of the light, in the drawing.
y double
The y of the light, in the drawing.
z double
The height of the light above the plane, in units of the drawing.

Exceptions

ArgumentException
A coordinate is not a finite number.
ArgumentOutOfRangeException
The magnitude of a coordinate exceeds 16777216.

Properties

NameDescription
XGets the x of the light.
YGets the y of the light.
ZGets the height of the light above the plane.

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