Point3D.X 属性

定义

获取或设置三维点的 X 坐标。Gets or sets the X coordinate of a 3D point.

public:
 property float X { float get(); void set(float value); };
[System.ComponentModel.Bindable(true)]
public float X { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.X : single with get, set
Public Property X As Single

属性值

Single

一个 float,它表示三维点的 X 坐标。A float that represents the X coordinate of a 3D point.

属性

注解

自定义三维绘图中使用的任何点(使用 GDI + 完成)必须使用方法从 X、Y 和 Z (3D) 坐标转换为 X 和 Y (2D) 坐标 TransformPointsAny point used in custom 3D drawing - which is accomplished using GDI+ - must be transformed from X, Y and Z (3D) coordinates into X and Y (2D) coordinates using the TransformPoints method. 此方法采用 Point3D 对象的数组作为其唯一参数。This method takes an array of Point3D objects as its only parameter. 通过调用 TransformPoints 方法,X 和 Y 属性值将更改,以反映三维空间。By calling the TransformPoints method, the X and Y property values are changed to reflect the 3-dimensional space.

然后,使用方法将这些新的 X 和 Y 坐标转换为绝对坐标 GetAbsolutePointThese new X and Y coordinates are then converted to absolute coordinates using the GetAbsolutePoint method. 然后,它们将用于 GDI + 方法调用。They are then used for GDI+ method calls.

可以通过调用方法从轴值获取相对 X 坐标 ValueToPositionA relative X coordinate can be obtained from an axis value by calling the ValueToPosition method.

适用于