次の方法で共有


XMUSHORT2.operator = method

Assigns the vector component data from one instance of XMUSHORT2 to the current instance of XMUSHORT2.

This operator assigns the vector component data from one instance of XMUSHORT2 to the current instance of XMUSHORT2.

Note  This operator is only available for C++ based development.

 

Syntax

XMUSHORT2&  operator = (
  [ref] const XMUSHORT2 &UShort2
);

Parameters

  • UShort2 [ref]
    Instance of XMUSHORT2 used to update the current XMUSHORT2 structure.

Return value

The current instance of XMUSHORT2 whose vector component data has been updated to match those of the XMUSHORT2 instance specified by the UShort2 argument.

Requirements

Namespace

Use DirectX.

Header

DirectXMath.h

See also

XMUSHORT2 Operators

Reference

XMUSHORT2