Point3D.X 속성

정의

Point3D 구조체의 X 좌표를 가져오거나 설정합니다.

public:
 property double X { double get(); void set(double value); };
public double X { get; set; }
member this.X : double with get, set
Public Property X As Double

속성 값

Double

Point3D 구조체의 X 좌표입니다.

예제

다음 예제에서는 속성을 설정하는 Point3D 방법을 보여줍니다.

// Checks if two Point3D structures are equal using the static Equals method.
 
Point3D point1 = new Point3D(10, 5, 1);
Point3D point2 = new Point3D(15, 40, 60);
Boolean areEqual;

areEqual = Point3D.Equals(point1, point2);
// areEqual is False	

//Displaying Results
syntaxString = "areEqual = Point3D.Equals(point1, point2);";
resultType = "Boolean";
operationString = "Checking if 3D two points are equal";
ShowResults(areEqual.ToString(), syntaxString, resultType, operationString);
' Checks if two Point3D structures are equal using the static Equals method.

Dim point1 As New Point3D(10, 5, 1)
Dim point2 As New Point3D(15, 40, 60)
Dim areEqual As Boolean

areEqual = Point3D.Equals(point1, point2)
' areEqual is False	

'Displaying Results
syntaxString = "areEqual = Point3D.Equals(point1, point2)"
resultType = "Boolean"
operationString = "Checking if 3D two points are equal"
ShowResults(areEqual.ToString(), syntaxString, resultType, operationString)

적용 대상