Point4D.Inequality(Point4D, Point4D) 연산자

정의

Point4D 구조체가 다른지 여부를 비교합니다.

public:
 static bool operator !=(System::Windows::Media::Media3D::Point4D point1, System::Windows::Media::Media3D::Point4D point2);
public static bool operator != (System.Windows.Media.Media3D.Point4D point1, System.Windows.Media.Media3D.Point4D point2);
static member op_Inequality : System.Windows.Media.Media3D.Point4D * System.Windows.Media.Media3D.Point4D -> bool
Public Shared Operator != (point1 As Point4D, point2 As Point4D) As Boolean

매개 변수

point1
Point4D

비교할 첫 번째 Point4D 구조체입니다.

point2
Point4D

비교할 두 번째 Point4D 구조체입니다.

반환

Boolean

point4D1point4D2X, Y, ZW 좌표가 서로 다르면 true이고, 그렇지 않으면 false입니다.

예제

다음 예제에서는 오버로드된 같지 않음 연산자를 사용하여 두 Point4D 구조체가 같지 않은지 확인하는 방법을 보여 줍니다.

// Checks if two Point4Ds are not equal using the overloaded inequality operator.

Point4D point1 = new Point4D(10, 5, 1, 4);
Point4D point2 = new Point4D(15, 40, 60, 75);
Boolean areNotEqual;

areNotEqual = (point1 != point2);
// areNotEqual is True

// Displaying Results
syntaxString = "areNotEqual = (point1 != point2);";
resultType = "Boolean";
operationString = "Checking if two 3D points are not equal";
ShowResults(areNotEqual.ToString(), syntaxString, resultType, operationString);
' Checks if two Point4Ds are not equal using the overloaded inequality operator.

Dim point1 As New Point4D(10, 5, 1, 4)
Dim point2 As New Point4D(15, 40, 60, 75)
Dim areNotEqual As Boolean

areNotEqual = (point1 <> point2)
' areNotEqual is True

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

설명

Point4D 구조체의 X값이 YZ다르고 W 속성이 다르면 같지 않습니다.

Double 산술 연산을 수행할 때 값이 정밀도를 잃을 수 있으므로 논리적으로 같은 두 Point4D 값 간의 비교가 실패할 수 있습니다.

적용 대상