Accept XY in constructor as well.
This commit is contained in:
@@ -21,7 +21,7 @@ public class Vector extends AbstractVector
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Creates a vector equal to {@code other}. */
|
/** Creates a vector equal to {@code other}. */
|
||||||
public Vector (IVector other) {
|
public Vector (XY other) {
|
||||||
set(other);
|
set(other);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ public class Vector extends AbstractVector
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Creates a vector equal to {@code other}. */
|
/** Creates a vector equal to {@code other}. */
|
||||||
public Vector (IVector other) {
|
public Vector (XY other) {
|
||||||
set(other);
|
set(other);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user