Microsoft DirectX 9.0 SDK Update (October 2004)

Light.Direction Property

Language:

Note: This documentation is preliminary and is subject to change.

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

Definition

Visual Basic .NET Public Property Direction As Vector3
C# public Vector3 Direction { get; set; }
Managed C++ public: __property Vector3 get_Direction();
public: __property void set_Direction(Vector3);
JScript .NET public function get Direction() : Vector3
public function set Direction(Vector3);

Property Value

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

This property is read/write. 

Remarks

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

Exceptions
InvalidCallException The property value is invalid.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center