Vector3D.Equals Vector3D.Equals Vector3D.Equals Vector3D.Equals Method

정의

Vector3D 구조체가 같은지 여부를 비교합니다.Compares two Vector3D structures for equality.

오버로드

Equals(Vector3D, Vector3D) Equals(Vector3D, Vector3D) Equals(Vector3D, Vector3D) Equals(Vector3D, Vector3D)

Vector3D 구조체가 같은지 여부를 비교합니다.Compares two Vector3D structures for equality.

Equals(Vector3D) Equals(Vector3D) Equals(Vector3D) Equals(Vector3D)

Vector3D 구조체가 같은지 여부를 비교합니다.Compares two Vector3D structures for equality.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

지정된 개체가 Vector3D 구조체인지 확인하고, 지정된 XY, ZObject 속성이 이 X 구조체의 Y, ZVector3D 속성과 같은지 확인합니다.Determines whether the specified object is a Vector3D structure and whether the X, Y, and Z properties of the specified Object are equal to the X, Y, and Z properties of this Vector3D structure.

Equals(Vector3D, Vector3D) Equals(Vector3D, Vector3D) Equals(Vector3D, Vector3D) Equals(Vector3D, Vector3D)

Vector3D 구조체가 같은지 여부를 비교합니다.Compares two Vector3D structures for equality.

public:
 static bool Equals(System::Windows::Media::Media3D::Vector3D vector1, System::Windows::Media::Media3D::Vector3D vector2);
public static bool Equals (System.Windows.Media.Media3D.Vector3D vector1, System.Windows.Media.Media3D.Vector3D vector2);
static member Equals : System.Windows.Media.Media3D.Vector3D * System.Windows.Media.Media3D.Vector3D -> bool
Public Shared Function Equals (vector1 As Vector3D, vector2 As Vector3D) As Boolean

매개 변수

vector1
Vector3D Vector3D Vector3D Vector3D

비교할 첫 번째 Vector3D입니다.First Vector3D to compare.

vector2
Vector3D Vector3D Vector3D Vector3D

비교할 두 번째 Vector3D입니다.Second Vector3D to compare.

반환

vector1vector2X, YZ 구성 요소가 같으면 true이고, 그렇지 않으면 false입니다.true if the X, Y, and Z components of vector1 and vector2 are equal; false otherwise.

예제

다음 예제에서는 두 개의 검사 Vector3D 구조체가 동일 합니다.The following example checks whether two Vector3D structures are equal.

// Checks if two Vector3D structures are equal using the static Equals method.

Vector3D vector1 = new Vector3D(20, 30, 40);
Vector3D vector2 = new Vector3D(45, 70, 80);
Boolean areEqual;

areEqual = Vector3D.Equals(vector1, vector2);
// areEqual is False	
' Checks if two Vector3D structures are equal using the static Equals method.

Dim vector1 As New Vector3D(20, 30, 40)
Dim vector2 As New Vector3D(45, 70, 80)
Dim areEqual As Boolean

areEqual = Vector3D.Equals(vector1, vector2)
' areEqual is False	

설명

해당 Vector3D, XY 속성의 값이 같으면 두 Z 구조체가 같습니다.Two Vector3D structures are equal if the values of their X, Y, and Z properties are the same.

Vector3D 값을 사용 하 여 설명 Double 값입니다.Vector3D values are described using Double values. 때문에 값을 Double 간 비교에 연산을 수행 하는 경우 정밀도 떨어질 수 Vector3D 논리적으로 동일한 값을 실패할 수 있습니다.Because the value of a Double can lose precision when operated upon, a comparison between two Vector3D values that are logically equal might fail.

추가 정보

Equals(Vector3D) Equals(Vector3D) Equals(Vector3D) Equals(Vector3D)

Vector3D 구조체가 같은지 여부를 비교합니다.Compares two Vector3D structures for equality.

public:
 bool Equals(System::Windows::Media::Media3D::Vector3D value);
public bool Equals (System.Windows.Media.Media3D.Vector3D value);
override this.Equals : System.Windows.Media.Media3D.Vector3D -> bool
Public Function Equals (value As Vector3D) As Boolean

매개 변수

value
Vector3D Vector3D Vector3D Vector3D

이 인스턴스와 비교할 Vector의 인스턴스입니다.The instance of Vector to compare against this instance.

반환

인스턴스가 서로 같으면 true이고, 그렇지 않으면 false입니다.true if instances are equal; otherwise, false.

설명

Vector3D 값을 사용 하 여 설명 Double 값입니다.Vector3D values are described using Double values. 때문에 값을 Double 간 비교에 연산을 수행 하는 경우 정밀도 떨어질 수 Vector3D 논리적으로 동일한 값을 실패할 수 있습니다.Because the value of a Double can lose precision when operated upon, a comparison between two Vector3D values that are logically equal might fail.

추가 정보

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

지정된 개체가 Vector3D 구조체인지 확인하고, 지정된 XY, ZObject 속성이 이 X 구조체의 Y, ZVector3D 속성과 같은지 확인합니다.Determines whether the specified object is a Vector3D structure and whether the X, Y, and Z properties of the specified Object are equal to the X, Y, and Z properties of this Vector3D structure.

public:
 override bool Equals(System::Object ^ o);
public override bool Equals (object o);
override this.Equals : obj -> bool
Public Overrides Function Equals (o As Object) As Boolean

매개 변수

o
Object Object Object Object

비교할 개체입니다.The object to compare.

반환

oVector3D 구조체이고 이 Vector3D 구조체와도 같으면 true이고, 그렇지 않으면 false입니다.true if o is a Vector3D structure and is identical with this Vector3D structure; false otherwise.

예제

다음 예제에서는 확인 하는 방법을 보여 줍니다는 ObjectVector3D 구조체가 같은지 합니다.The following example shows how to check if an Object and a Vector3D structure are equal.

// Compares an Object and a Vector3D for equality using the non-static Equals method.

Vector3D vector1 = new Vector3D(20, 30, 40);
Vector3D vector2 = new Vector3D(45, 70, 80);
Boolean areEqual;

areEqual = vector1.Equals(vector2);
// areEqual is False	
' Compares an Object and a Vector3D for equality using the non-static Equals method.

Dim vector1 As New Vector3D(20, 30, 40)
Dim vector2 As New Vector3D(45, 70, 80)
Dim areEqual As Boolean

areEqual = vector1.Equals(vector2)
' areEqual is False	

설명

하는 경우 o 아닙니다를 Vector3D 구조체를이 메서드는 반환 false합니다.If o is not a Vector3D structure, this method returns false.

Vector3D 값을 사용 하 여 설명 Double 값입니다.Vector3D values are described using Double values. 때문에 값을 Double 간 비교에 연산을 수행 하는 경우 정밀도 떨어질 수 Vector3D 논리적으로 동일한 값을 실패할 수 있습니다.Because the value of a Double can lose precision when operated upon, a comparison between two Vector3D values that are logically equal might fail.

추가 정보

적용 대상