Vector3D.Explicit 运算符

定义

Vector3D 结构转换为 Point3D 结构或 Size3D

重载

Explicit(Vector3D to Point3D)

Vector3D 结构变换为 Point3D 结构。

Explicit(Vector3D to Size3D)

Vector3D 结构转换为 Size3D

Explicit(Vector3D to Point3D)

Vector3D 结构变换为 Point3D 结构。

public:
 static explicit operator System::Windows::Media::Media3D::Point3D(System::Windows::Media::Media3D::Vector3D vector);
public static explicit operator System.Windows.Media.Media3D.Point3D (System.Windows.Media.Media3D.Vector3D vector);
static member op_Explicit : System.Windows.Media.Media3D.Vector3D -> System.Windows.Media.Media3D.Point3D
Public Shared Narrowing Operator CType (vector As Vector3D) As Point3D

参数

vector
Vector3D

要变换的向量。

返回

Point3D

转换 vector 的结果。

适用于

Explicit(Vector3D to Size3D)

Vector3D 结构转换为 Size3D

public:
 static explicit operator System::Windows::Media::Media3D::Size3D(System::Windows::Media::Media3D::Vector3D vector);
public static explicit operator System.Windows.Media.Media3D.Size3D (System.Windows.Media.Media3D.Vector3D vector);
static member op_Explicit : System.Windows.Media.Media3D.Vector3D -> System.Windows.Media.Media3D.Size3D
Public Shared Narrowing Operator CType (vector As Vector3D) As Size3D

参数

vector
Vector3D

要变换的向量。

返回

Size3D

转换 vector 的结果。

注解

由于结构Size3D不能为负值,因此使用了结构的绝对值XYZ属性Vector3D

适用于