new coordinate constructor for double