Plane.Equals 方法
定义
重载
| 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.
返回
如果当前实例与 obj 相等,则为 true;否则为 false。true if the current instance and obj are equal; otherwise, false. 如果 obj 为 null,则此方法返回 false。If obj is null, the method returns false.
注解
obj如果 obj 是一个 Plane 对象,并且它们的 Normal 和 D 字段相等,则当前实例和相等。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.
返回
如果两个平面相等,则为 true;否则为 false。true if the two planes are equal; otherwise, false.
实现
注解
如果两个 Plane 对象的 Normal 和字段相等,则这两个对象相等 D 。Two Plane objects are equal if their Normal and D fields are equal.