Using scaled coordinates in external class