added a new constructor

This commit is contained in:
hneemann 2018-11-02 13:33:00 +01:00
parent 939ee8732d
commit 6afeddf3ce

View File

@ -20,6 +20,16 @@ public class TransformTranslate implements Transform {
this.trans = trans;
}
/**
* Creates a new instance
*
* @param x the x translation
* @param y the y translation
*/
public TransformTranslate(int x, int y) {
this(new Vector(x, y));
}
/**
* Creates a new instance
*