Google.Maps.Util.GeometryUtils.Vector2Comparer

An equality comparer for Vector2 objects that uses the == operator.

Summary

Using the == operator results in epsilon comparison. The == operator documentation states: two vectors are considered equal if the magnitude of their difference is less than 1e-5.

Inheritance

Inherits from: IEqualityComparer< Vector2 >

Public static attributes

Default = new Vector2Comparer()
readonly Vector2Comparer
Default singleton.

Public functions

Equals(Vector2 x, Vector2 y)
bool
GetHashCode(Vector2 obj)
int

Public static attributes

Default

readonly Vector2Comparer Default = new Vector2Comparer()

Default singleton.

Public functions

Equals

bool Equals(
  Vector2 x,
  Vector2 y
)

GetHashCode

int GetHashCode(
  Vector2 obj
)