SpotLight Constructor (Color, Point3D, Vector3D, Double, Double)

 

Initializes a new instance of the SpotLight class using the specified color, position, direction, and cone angles.

Namespace:   System.Windows.Media.Media3D
Assembly:  PresentationCore (in PresentationCore.dll)

public SpotLight(
	Color diffuseColor,
	Point3D position,
	Vector3D direction,
	double outerConeAngle,
	double innerConeAngle
)

Parameters

diffuseColor
Type: System.Windows.Media.Color

Diffuse color of the new SpotLight.

position
Type: System.Windows.Media.Media3D.Point3D

Position of the new SpotLight.

direction
Type: System.Windows.Media.Media3D.Vector3D

Direction of the new SpotLight.

outerConeAngle
Type: System.Double

Angle that defines a cone outside which the light does not illuminate objects in the scene.

innerConeAngle
Type: System.Double

Angle that defines a cone within which the light fully illuminates objects in the scene.

.NET Framework
Available since 3.0
Return to top
Show: