Editare

Partajați prin


Vector3.Equals Method

Definition

Returns a value that indicates whether this instance and a specified Vector3 instance or a specified object are equal.

Overloads

Equals(Vector3)

Returns a value that indicates whether this instance and another vector are equal.

Equals(Object)

Returns a value that indicates whether this instance and a specified object are equal.

Equals(Vector3)

Source:
Vector3.cs
Source:
Vector3.cs
Source:
Vector3.cs

Returns a value that indicates whether this instance and another vector are equal.

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

Parameters

other
Vector3

The other vector.

Returns

true if the two vectors are equal; otherwise, false.

Implements

Remarks

Two vectors are equal if their X, Y, and Z elements are equal.

Applies to

Equals(Object)

Source:
Vector3.cs
Source:
Vector3.cs
Source:
Vector3.cs

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 readonly bool Equals (object? obj);
public override readonly bool Equals (object obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean

Parameters

obj
Object

The object to compare with the current instance.

Returns

true if the current instance and obj are equal; otherwise, false. If obj is null, the method returns false.

Remarks

The current instance and obj are equal if obj is a Vector3 object and their corresponding elements are equal.

Applies to