Share via


Vector2.Multiply(Vector2,Single) Method (Microsoft.DirectX)

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 SingleLeave Site value.

Return Value

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