tx
and ty
are both greater than sx
and sy
respectively:
a. If tx > ty
, set tx
to tx % ty
.
b. Else, set ty
to ty % tx
.tx
equals sx
and ty
is greater than sy
and the difference ty - sy
is divisible by sx
, return true
.ty
equals sy
and tx
is greater than sx
and the difference tx - sx
is divisible by sy
, return true
.tx
equals sx
and ty
equals sy
, return true
.false
.