Vector2.Multiply Method

Language:

Multiplies the current 2-D vector with a single value.

Definition

Visual Basic Public Shared Function Multiply( _
    ByVal source As Vector2, _
    ByVal s As Single _
) As Vector2
C# public static Vector2 Multiply(
    Vector2 source,
    float s
);
C++ public:
static Vector2 Multiply(
    Vector2 source,
    float s
);
JScript public static function Multiply(
    source : Vector2,
    s : float
) : Vector2;

Parameters

source Microsoft.DirectX.Vector2
Source Vector2 structure.
s System.Single
Source Single Leave Site value.

Return Value

Microsoft.DirectX.Vector2
A Vector2 that is the result of the source parameter multiplied by the s parameter.


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

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