Vector2.Equals Metodo
Definizione
Overload
Equals(Object) |
Restituisce un valore che indica se questa istanza è uguale a un oggetto specificato.Returns a value that indicates whether this instance and a specified object are equal. |
Equals(Vector2) |
Restituisce un valore che indica se questa istanza è uguale a un altro vettore.Returns a value that indicates whether this instance and another vector are equal. |
Equals(Object)
Restituisce un valore che indica se questa istanza è uguale a un oggetto specificato.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);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean
Parametri
- obj
- Object
Oggetto da confrontare con l'istanza corrente.The object to compare with the current instance.
Restituisce
true
se l'istanza corrente è uguale a obj
; in caso contrario, false
.true
if the current instance and obj
are equal; otherwise, false
. Se obj
è null
, il metodo restituisce false
.If obj
is null
, the method returns false
.
Commenti
L'istanza corrente e obj
sono uguali se obj
è un Vector2 oggetto e i X relativi Y elementi e sono uguali.The current instance and obj
are equal if obj
is a Vector2 object and their X and Y elements are equal.
Si applica a
Equals(Vector2)
Restituisce un valore che indica se questa istanza è uguale a un altro vettore.Returns a value that indicates whether this instance and another vector are equal.
public:
virtual bool Equals(System::Numerics::Vector2 other);
public bool Equals (System.Numerics.Vector2 other);
override this.Equals : System.Numerics.Vector2 -> bool
Public Function Equals (other As Vector2) As Boolean
Parametri
- other
- Vector2
L'altro vettore.The other vector.
Restituisce
true
se i due vettori sono uguali; in caso contrario, false
.true
if the two vectors are equal; otherwise, false
.
Implementazioni
Commenti
Due vettori sono uguali se gli X elementi e Y sono uguali.Two vectors are equal if their X and Y elements are equal.