語言

Point4D 結構

定義

代表世界空間中用來執行非 affine 3D 矩陣之轉換的 x、y-、z-和 w 座標點。

public value class Point4D : IFormattable
[System.ComponentModel.TypeConverter(typeof(System.Windows.Media.Media3D.Point4DConverter))]
[System.Serializable]
public struct Point4D : IFormattable
[System.ComponentModel.TypeConverter(typeof(System.Windows.Media.Media3D.Point4DConverter))]
public struct Point4D : IFormattable
[<System.ComponentModel.TypeConverter(typeof(System.Windows.Media.Media3D.Point4DConverter))>]
[<System.Serializable>]
type Point4D = struct
    interface IFormattable
[<System.ComponentModel.TypeConverter(typeof(System.Windows.Media.Media3D.Point4DConverter))>]
type Point4D = struct
    interface IFormattable
Public Structure Point4D
Implements IFormattable
繼承
Point4D
屬性
實作

備註

在 XAML 中,a Point4D 值之間的分隔符可以是逗號或空格。

有些文化可能會用逗號作為小數分隔符,而不是時代字元。 大多數 XAML 處理器實作中,不變文化的 XAML 處理預設為 en-US,且預期週期為十進位分隔符。 如果在 XAML 中指定 a Point4D ,應該避免用逗號作為十進位分隔符,因為這會和字串類型將屬性值轉換 Point4D 成其組成部分的過程產生衝突。

XAML 屬性使用方式

<object property="x,y,z,w"/>
-or-
<object property="x y z w"/>

XAML 值

x 這個 X 結構的 Point4D 組成部分。

y 這個 Y 結構的 Point4D 組成部分。

z 這個 Z 結構的 Point4D 組成部分。

w 是 W 此 Point4D 結構的組成部分。

建構函式

名稱 Description
Point4D(Double, Double, Double, Double)

初始化結構的新實例 Point4D 。

屬性

名稱 Description
W

取得或設定 W 此 Point4D 結構的組成部分。

X

取得或設定 X 此 Point4D 結構的組成部分。

Y

取得或設定 Y 此 Point4D 結構的組成部分。

Z

取得或設定 Z 此 Point4D 結構的組成部分。

方法

名稱 Description
Add(Point4D, Point4D)

為 Point4D 加入結構。Point4D

Equals(Object)

判斷指定的Object結構是否為Point4D結構,以及指定的 、 X、 Y、 及Z性質W是否Object等於X該Y結構的 、 Z、 WPoint4D 、 及 性質。

Equals(Point4D, Point4D)

比較兩種 Point4D 平等結構。

Equals(Point4D)

比較兩種 Point4D 平等結構。

GetHashCode()

會回傳此 Point4D 結構的雜湊碼。

Multiply(Point4D, Matrix3D)

將指定的 Point4D 結構轉換為指定的 Matrix3D 結構。

Offset(Double, Double, Double, Double)

將 Point4D 結構轉換為指定金額。

Parse(String)

將 String point4D 結構的表示轉換為等價 Point4D 結構。

Subtract(Point4D, Point4D)

從結構Point4D中減去結構Point4D。

ToString()

能呈現 String 這個 Point4D 結構。

ToString(IFormatProvider)

能呈現 String 這個 Point4D 結構。

運算子

名稱 Description
Addition(Point4D, Point4D)

為 Point4D 加入結構。Point4D

Equality(Point4D, Point4D)

比較兩種 Point4D 平等結構。

Inequality(Point4D, Point4D)

比較兩種 Point4D 不平等結構。

Multiply(Point4D, Matrix3D)

將指定的 Point4D 結構轉換為指定的 Matrix3D 結構。

Subtraction(Point4D, Point4D)

從結構Point4D中減去結構Point4D,並返回結果為結構Point4D。

明確介面實作

名稱 Description
IFormattable.ToString(String, IFormatProvider)

此成員支援 Windows Presentation Foundation(WPF)基礎架構,並非直接從您的程式碼中使用。 關於此成員的描述,請參見 ToString(String, IFormatProvider)。

適用於