Vector3D.Explicit 運算子

定義

Vector3D 結構轉換為 Point3D 結構或 Size3DConverts a Vector3D structure into a Point3D structure or a Size3D.

多載

Explicit(Vector3D to Point3D)

Vector3D 結構轉換成 Point3D 結構。Converts a Vector3D structure into a Point3D structure.

Explicit(Vector3D to Size3D)

Vector3D 結構轉換為 Size3DConverts a Vector3D structure into a Size3D.

Explicit(Vector3D to Point3D)

Vector3D 結構轉換成 Point3D 結構。Converts a Vector3D structure into a Point3D structure.

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

要轉換的向量。The vector to convert.

傳回

轉換 vector 的結果。The result of converting vector.

Explicit(Vector3D to Size3D)

Vector3D 結構轉換為 Size3DConverts a Vector3D structure into a 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

要轉換的向量。The vector to convert.

傳回

轉換 vector 的結果。The result of converting vector.

備註

Vector3D Z Y X因為結構不可以是負數, 所以會使用結構的絕對值和屬性。 Size3DBecause a Size3D structure cannot be negative, the absolute values of the X, Y and Z properties of the Vector3D structure are used.

適用於