diff --git a/src/edu/kit/informatik/model/Vector2D.java b/src/edu/kit/informatik/model/Vector2D.java index 1eb836d..eaaa453 100644 --- a/src/edu/kit/informatik/model/Vector2D.java +++ b/src/edu/kit/informatik/model/Vector2D.java @@ -1,5 +1,7 @@ package edu.kit.informatik.model; +import java.util.Objects; + /** * A two-dimensional vector, usually a position or movement direction vector. * @@ -139,4 +141,9 @@ public class Vector2D { return false; } + + @Override + public int hashCode() { + return Objects.hash(x, y); + } }