equals

open operator override fun equals(other: Any?): Boolean

Compares coordinate to another Object.

Return

true if other object is Coordinate and xCoord == other.xCoord &&yCoord == other.yCoord.