VectorExtensions.ToVector2 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ToVector2(Point) | |
ToVector2(Size) |
ToVector2(Point)
public:
[System::Runtime::CompilerServices::Extension]
static System::Numerics::Vector2 ToVector2(Windows::Foundation::Point point);
public static System.Numerics.Vector2 ToVector2 (this Windows.Foundation.Point point);
static member ToVector2 : Windows.Foundation.Point -> System.Numerics.Vector2
<Extension()>
Public Function ToVector2 (point As Point) As Vector2
參數
- point
- Point
傳回
適用於
ToVector2(Size)
public:
[System::Runtime::CompilerServices::Extension]
static System::Numerics::Vector2 ToVector2(Windows::Foundation::Size size);
public static System.Numerics.Vector2 ToVector2 (this Windows.Foundation.Size size);
static member ToVector2 : Windows.Foundation.Size -> System.Numerics.Vector2
<Extension()>
Public Function ToVector2 (size As Size) As Vector2
參數
- size
- Size