Skip to content
Snippets Groups Projects

Resolve "Create empty constructor for Vector2D"

Merged Joachim Duong requested to merge 1-create-empty-constructor-for-vector2d into development
1 file
+ 7
0
Compare changes
  • Side-by-side
  • Inline
@@ -42,6 +42,13 @@ public class Vector2D {
this.x1 = x1;
}
/**
* Constructs a {@code Vector2D} with all elements set to 0.
*/
public Vector2D() {
this(0, 0);
}
/**
* @return the first value of the vector at index 0
*/
Loading