Convert complex to/from cartesian coordinates
Arguments
- Z
coordinates expressed in the complex form
- coo
coordinates expressed in the cartesian form
Examples
shapes[4] %>% # from cartesian
coo_sample(24) %>%
coo2cpx() %T>% # to complex
cpx2coo() # and back
#> [1] 200+ 62i 205+ 43i 176+ 43i 146+ 44i 156+ 23i 186+ 20i 202+ 15i 172+ 9i
#> [9] 143+ 16i 130+ 45i 135+ 74i 133+104i 142+134i 165+160i 191+182i 203+210i
#> [17] 225+226i 239+204i 238+178i 237+150i 227+120i 221+ 91i 224+ 62i 219+ 45i