Share via


Light.Direction Property

Retrieves or sets the direction in which the light is pointing in world space, as specified by a Vector3 structure.

Namespace: Microsoft.WindowsMobile.DirectX.Direct3D
Assembly: Microsoft.WindowsMobile.DirectX (in microsoft.windowsmobile.directx.dll)

Syntax

'Declaration
Public Property Direction As Vector3
'Usage
Dim instance As Light
Dim value As Vector3

value = instance.Direction

instance.Direction = value
public Vector3 Direction { get; set; }
public:
property Vector3 Direction {
    Vector3 get ();
    void set (Vector3 value);
}
/** @property */
public Vector3 get_Direction ()

/** @property */
public void set_Direction (Vector3 value)
public function get Direction () : Vector3

public function set Direction (value : Vector3)
Not applicable.

Property Value

A Vector3 structure that represents the direction in which the light is pointing.

Exceptions

Exception type Condition

InvalidCallException

The property value is invalid.

Remarks

This member has meaning only for directional light and spotlights. The vector need not be normalized, but it should have a nonzero length.

Platforms

Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Compact Framework

Supported in: 2.0

See Also

Reference

Light Class
Light Members
Microsoft.WindowsMobile.DirectX.Direct3D Namespace