mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-15 15:58:41 -04:00
added a new constructor
This commit is contained in:
parent
939ee8732d
commit
6afeddf3ce
@ -20,6 +20,16 @@ public class TransformTranslate implements Transform {
|
|||||||
this.trans = trans;
|
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
|
* Creates a new instance
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user