Table of Contents

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 Vector2D

The first object of type T to compare.

y Vector2D

The second object of type T to compare.

Returns

bool

true if the specified objects are equal; otherwise, false.

Equals(Vector2DInt, Vector2DInt)

Determines whether the specified objects are equal.

public readonly bool Equals(Vector2DInt x, Vector2DInt y)

Parameters

x Vector2DInt

The first object of type T to compare.

y Vector2DInt

The second object of type T to compare.

Returns

bool

true if the specified objects are equal; otherwise, false.

Equals(Vector3D, Vector3D)

Determines whether the specified objects are equal.

public readonly bool Equals(Vector3D x, Vector3D y)

Parameters

x Vector3D

The first object of type T to compare.

y Vector3D

The second object of type T to compare.

Returns

bool

true if the specified objects are equal; otherwise, false.

Equals(Vector3DInt, Vector3DInt)

Determines whether the specified objects are equal.

public readonly bool Equals(Vector3DInt x, Vector3DInt y)

Parameters

x Vector3DInt

The first object of type T to compare.

y Vector3DInt

The second object of type T to compare.

Returns

bool

true if the specified objects are equal; otherwise, false.

Equals(Vector4D, Vector4D)

Determines whether the specified objects are equal.

public readonly bool Equals(Vector4D x, Vector4D y)

Parameters

x Vector4D

The first object of type T to compare.

y Vector4D

The second object of type T to compare.

Returns

bool

true if the specified objects are equal; otherwise, false.

Equals(object, object)

Determines whether the specified objects are equal.

public readonly bool Equals(object x, object y)

Parameters

x object

The first object to compare.

y object

The second object to compare.

Returns

bool

true if the specified objects are equal; otherwise, false.

Exceptions

ArgumentException

x and y 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

obj Vector2D

The 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 and obj is null.

GetHashCode(Vector2DInt)

Returns a hash code for the specified object.

public readonly int GetHashCode(Vector2DInt obj)

Parameters

obj Vector2DInt

The 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 and obj is null.

GetHashCode(Vector3D)

Returns a hash code for the specified object.

public readonly int GetHashCode(Vector3D obj)

Parameters

obj Vector3D

The 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 and obj is null.

GetHashCode(Vector3DInt)

Returns a hash code for the specified object.

public readonly int GetHashCode(Vector3DInt obj)

Parameters

obj Vector3DInt

The 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 and obj is null.

GetHashCode(Vector4D)

Returns a hash code for the specified object.

public readonly int GetHashCode(Vector4D obj)

Parameters

obj Vector4D

The 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 and obj is null.

GetHashCode(object)

Returns a hash code for the specified object.

public readonly int GetHashCode(object obj)

Parameters

obj object

The 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 and obj is null.