Point4D 结构

定义

表示与非仿射三维矩阵进行转换的过程中使用的全局空间 x、y、z 和 w 坐标点。Represents an x-, y-, z-, and w-coordinate point in world space used in performing transformations with non-affine 3-D matrices.

public value class Point4D : IFormattable
[System.ComponentModel.TypeConverter(typeof(System.Windows.Media.Media3D.Point4DConverter))]
[System.Serializable]
public struct Point4D : IFormattable
type Point4D = struct
    interface IFormattable
Public Structure Point4D
Implements IFormattable
继承
Point4D
属性
实现

注解

在 XAML 中, 的Point4D值之间的分隔符可以是逗号或空格。In XAML, the delimiter between the values of a Point4D can be either a comma or a space.

某些区域性可能使用逗号字符作为小数分隔符, 而不是句点字符。Some cultures might use the comma character as the decimal delimiter instead of the period character. 在大多数 XAML 处理器实现中, 用于固定区域性的 XAML 处理默认为 en-us, 并期望句点是小数分隔符。XAML processing for invariant culture defaults to en-US in most XAML processor implementations, and expects the period to be the decimal delimiter. 如果在 XAML 中指定了Point4D , 则应避免使用逗号字符作为小数分隔符, 因为这将与Point4D属性值到其组件的字符串类型转换冲突。You should avoid using the comma character as the decimal delimiter if specifying a Point4D in XAML, because that will clash with the string type conversion of a Point4D attribute value into its components.

XAML 属性用法XAML Attribute Usage

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

XAML 值XAML Values

xx
X 结构的 Point4D 组件。The X component of this Point4D structure.

yy
Y 结构的 Point4D 组件。The Y component of this Point4D structure.

zz
Z 结构的 Point4D 组件。The Z component of this Point4D structure.

ww
W 结构的 Point4D 组件。The W component of this Point4D structure.

构造函数

Point4D(Double, Double, Double, Double)

初始化 Point4D 结构的新实例。Initializes a new instance of a Point4D structure.

属性

W

获取或设置此 W 结构的 Point4D 组件。Gets or sets the W component of this Point4D structure.

X

获取或设置此 X 结构的 Point4D 组件。Gets or sets the X component of this Point4D structure.

Y

获取或设置此 Y 结构的 Point4D 组件。Gets or sets the Y component of this Point4D structure.

Z

获取或设置此 Z 结构的 Point4D 组件。Gets or sets the Z component of this Point4D structure.

方法

Add(Point4D, Point4D)

Point4D 结构添加到 Point4DAdds a Point4D structure to a Point4D.

Equals(Object)

确定指定的 Object 是否为 Point4D 结构,以及指定的 ObjectXYZW 属性是否与此 Point4D 结构的 XYZW 属性相等。Determines whether the specified Object is a Point4D structure and if the X, Y, Z, and W properties of the specified Object are equal to the X, Y, Z, and W properties of this Point4D structure.

Equals(Point4D)

比较两个 Point4D 结构是否相等。Compares two Point4D structures for equality.

Equals(Point4D, Point4D)

比较两个 Point4D 结构是否相等。Compares two Point4D structures for equality.

GetHashCode()

返回此 Point4D 结构的哈希代码。Returns a hash code for this Point4D structure.

Multiply(Point4D, Matrix3D)

使用指定的 Point4D 结构转换指定的 Matrix3D 结构。Transforms the specified Point4D structure by the specified Matrix3D structure.

Offset(Double, Double, Double, Double)

Point4D 结构平移指定量。Translates the Point4D structure by the specified amounts.

Parse(String)

将一个 point4D 结构的 String 表示形式转换为等效的 Point4D 结构。Converts a String representation of a point4D structure into the equivalent Point4D structure.

Subtract(Point4D, Point4D)

从一个 Point4D 结构中减去一个 Point4D 结构。Subtracts a Point4D structure from a Point4D structure.

ToString()

创建此 String 结构的 Point4D 表示形式。Creates a String representation of this Point4D structure.

ToString(IFormatProvider)

创建此 String 结构的 Point4D 表示形式。Creates a String representation of this Point4D structure.

操作员

Addition(Point4D, Point4D)

Point4D 结构添加到 Point4DAdds a Point4D structure to a Point4D.

Equality(Point4D, Point4D)

比较两个 Point4D 结构是否相等。Compares two Point4D structures for equality.

Inequality(Point4D, Point4D)

比较两个 Point4D 结构是否不相等。Compares two Point4D structures for inequality.

Multiply(Point4D, Matrix3D)

使用指定的 Point4D 结构转换指定的 Matrix3D 结构。Transforms the specified Point4D structure by the specified Matrix3D structure.

Subtraction(Point4D, Point4D)

从一个 Point4D 结构中减去另一个 Point4D 结构并以 Point4D 结构返回结果。Subtracts a Point4D structure from a Point4D structure and returns the result as a Point4D structure.

显式界面实现

IFormattable.ToString(String, IFormatProvider)

此成员支持 Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) 基础结构,但不能在代码中直接使用。This member supports the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code. 有关此成员的说明,请参见 ToString(String, IFormatProvider)For a description of this member, see ToString(String, IFormatProvider).

适用于