PointF.Explicit 运算符

定义

重载

Explicit(PointF to Vector2)

将指定的 PointF 转换为 Vector2

Explicit(Vector2 to PointF)

将指定的 Vector2 转换为 PointF

Explicit(PointF to Vector2)

Source:
PointF.cs
Source:
PointF.cs
Source:
PointF.cs

将指定的 PointF 转换为 Vector2

public:
 static explicit operator System::Numerics::Vector2(System::Drawing::PointF point);
public static explicit operator System.Numerics.Vector2 (System.Drawing.PointF point);
static member op_Explicit : System.Drawing.PointF -> System.Numerics.Vector2
Public Shared Narrowing Operator CType (point As PointF) As Vector2

参数

point
PointF

要从中转换的点。

返回

表示转换后的 PointF向量。

适用于

Explicit(Vector2 to PointF)

Source:
PointF.cs
Source:
PointF.cs
Source:
PointF.cs

将指定的 Vector2 转换为 PointF

public:
 static explicit operator System::Drawing::PointF(System::Numerics::Vector2 vector);
public static explicit operator System.Drawing.PointF (System.Numerics.Vector2 vector);
static member op_Explicit : System.Numerics.Vector2 -> System.Drawing.PointF
Public Shared Narrowing Operator CType (vector As Vector2) As PointF

参数

vector
Vector2

要变换的向量。

返回

表示转换后的 Vector2坐标对。

适用于