Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. export class Position {
  2.  
  3. X: number;
  4. Y: number;
  5.  
  6. constructor(x: number, y: number) {
  7.  
  8. this.X = x;
  9. this.Y = y;
  10. }
  11.  
  12. static copy(position: Position) {
  13.  
  14. return new Position(position.X, position.Y);
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement