operator* (multiply)
Multiply an instance of XMVECTOR by a floating point value, returning the result a new instance of XMVECTOR.
The operator *
multiplies each component of an instance of XMVECTOR Data Type by a floating point value, returning a new XMVECTOR instance whose components contain the result.
Syntax
XMVECTOR XM_CALLCONV operator*(
FXMVECTOR V,
float S
) noexcept;
Parameters
V
XMVECTOR instance whose components are multiplicands of this multiplication operation.
S
Floating point value used as a multiplicand for each component of V.
Return value
XMVECTOR instance whose components are the product of the multiplication of the corresponding components of V by S.
Remarks
The following pseudocode demonstrates the operation of this operator:
XMVECTOR V;
Float S;
XMVECTOR Vout;
Vout.x = V1.x * S;
Vout.y = V1.y * S;
Vout.z = V1.z * S;
Vout.w = V1.w * S;
Requirements
Requirement | Value |
---|---|
Header | directxmath.h |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for