Edit

Share via


PointLight Constructors

Definition

Initializes a new instance of the PointLight class at the origin.

Overloads

PointLight()

Initializes a new instance of the PointLight class at the origin.

PointLight(Color, Point3D)

Initializes a new instance of the PointLight class at the specified position, using the specified color.

PointLight()

Initializes a new instance of the PointLight class at the origin.

public:
 PointLight();
public PointLight ();
Public Sub New ()

Examples

The following example shows how to use this constructor.

// Point light values.
PointLight _ptLight = new PointLight();
' Point light values.
Private _ptLight As New PointLight()

Applies to

PointLight(Color, Point3D)

Initializes a new instance of the PointLight class at the specified position, using the specified color.

public:
 PointLight(System::Windows::Media::Color diffuseColor, System::Windows::Media::Media3D::Point3D position);
public PointLight (System.Windows.Media.Color diffuseColor, System.Windows.Media.Media3D.Point3D position);
new System.Windows.Media.Media3D.PointLight : System.Windows.Media.Color * System.Windows.Media.Media3D.Point3D -> System.Windows.Media.Media3D.PointLight
Public Sub New (diffuseColor As Color, position As Point3D)

Parameters

diffuseColor
Color

The diffuse color.

position
Point3D

The position.

See also

Applies to