Microsoft DirectX 9.0 SDK Update (October 2004)

Vector3.op_UnaryNegation Method

Language:

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

Negates the vector.

Definition

Visual Basic .NET Public Shared Function op_UnaryNegation( _
    ByVal vec As Vector3 _
) As Vector3
C# public static Vector3 op_UnaryNegation(
    Vector3 vec
);
Managed C++ public: static Vector3 op_UnaryNegation(
    Vector3 vec
);
JScript .NET public static function op_UnaryNegation(
    vec : Vector3
) : Vector3;

Parameters

vec Microsoft.DirectX.Vector3. Source Vector3 structure.

Return Value

Microsoft.DirectX.Vector3 . The Vector3 structure that is the result of the operation.

Remarks

This method switches positive and negative values of the Vector3 structure's X, Y, and Z fields.


© 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