Plane.Equals 方法

定义

返回一个值,该值指示此实例是否与指定 Plane 实例或指定对象相等。Returns a value that indicates whether this instance and a specified Plane instance or a specified object are equal.

重载

Equals(Object)

返回一个值,该值指示此实例是否与指定对象相等。Returns a value that indicates whether this instance and a specified object are equal.

Equals(Plane)

返回一个值,该值指示此实例是否与另一个平面对象相等。Returns a value that indicates whether this instance and another plane object are equal.

Equals(Object)

返回一个值,该值指示此实例是否与指定对象相等。Returns a value that indicates whether this instance and a specified object are equal.

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

参数

obj
Object

要与当前实例进行比较的对象。The object to compare with the current instance.

返回

Boolean

如果当前实例与 obj 相等,则为 true;否则为 falsetrue if the current instance and obj are equal; otherwise, false. 如果 objnull,则此方法返回 falseIf obj is null, the method returns false.

注解

obj如果 obj 是一个 Plane 对象,并且它们的 NormalD 字段相等,则当前实例和相等。The current instance and obj are equal if obj is a Plane object and their Normal and D fields are equal.

适用于

Equals(Plane)

返回一个值,该值指示此实例是否与另一个平面对象相等。Returns a value that indicates whether this instance and another plane object are equal.

public:
 virtual bool Equals(System::Numerics::Plane other);
public bool Equals (System.Numerics.Plane other);
override this.Equals : System.Numerics.Plane -> bool
Public Function Equals (other As Plane) As Boolean

参数

other
Plane

另一个平面。The other plane.

返回

Boolean

如果两个平面相等,则为 true;否则为 falsetrue if the two planes are equal; otherwise, false.

实现

注解

如果两个 Plane 对象的 Normal 和字段相等,则这两个对象相等 DTwo Plane objects are equal if their Normal and D fields are equal.

适用于