Struct VectorEqualityComparer
- Namespace
- Cobilas.GodotEngine.Utility.Numerics
- Assembly
- com.cobilas.godot.utility.dll
public struct VectorEqualityComparer : IEqualityComparer, IEqualityComparer<Vector2D>, IEqualityComparer<Vector3D>, IEqualityComparer<Vector4D>, IEqualityComparer<Vector2DInt>, IEqualityComparer<Vector3DInt>
- Implements
- Inherited Members
Methods
Equals(Vector2D, Vector2D)
Determines whether the specified objects are equal.
public readonly bool Equals(Vector2D x, Vector2D y)
Parameters
x
Vector2DThe first object of type
T
to compare.y
Vector2DThe second object of type
T
to compare.
Returns
Equals(Vector2DInt, Vector2DInt)
Determines whether the specified objects are equal.
public readonly bool Equals(Vector2DInt x, Vector2DInt y)
Parameters
x
Vector2DIntThe first object of type
T
to compare.y
Vector2DIntThe second object of type
T
to compare.
Returns
Equals(Vector3D, Vector3D)
Determines whether the specified objects are equal.
public readonly bool Equals(Vector3D x, Vector3D y)
Parameters
x
Vector3DThe first object of type
T
to compare.y
Vector3DThe second object of type
T
to compare.
Returns
Equals(Vector3DInt, Vector3DInt)
Determines whether the specified objects are equal.
public readonly bool Equals(Vector3DInt x, Vector3DInt y)
Parameters
x
Vector3DIntThe first object of type
T
to compare.y
Vector3DIntThe second object of type
T
to compare.
Returns
Equals(Vector4D, Vector4D)
Determines whether the specified objects are equal.
public readonly bool Equals(Vector4D x, Vector4D y)
Parameters
x
Vector4DThe first object of type
T
to compare.y
Vector4DThe second object of type
T
to compare.
Returns
Equals(object, object)
Determines whether the specified objects are equal.
public readonly bool Equals(object x, object y)
Parameters
Returns
Exceptions
- ArgumentException
x
andy
are of different types and neither one can handle comparisons with the other.
GetHashCode(Vector2D)
Returns a hash code for the specified object.
public readonly int GetHashCode(Vector2D obj)
Parameters
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(Vector2DInt)
Returns a hash code for the specified object.
public readonly int GetHashCode(Vector2DInt obj)
Parameters
obj
Vector2DIntThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(Vector3D)
Returns a hash code for the specified object.
public readonly int GetHashCode(Vector3D obj)
Parameters
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(Vector3DInt)
Returns a hash code for the specified object.
public readonly int GetHashCode(Vector3DInt obj)
Parameters
obj
Vector3DIntThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(Vector4D)
Returns a hash code for the specified object.
public readonly int GetHashCode(Vector4D obj)
Parameters
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(object)
Returns a hash code for the specified object.
public readonly int GetHashCode(object obj)
Parameters
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.