Learn R Programming

Momocs (version 1.4.1)

complex: Convert complex to/from cartesian coordinates

Description

Convert complex to/from cartesian coordinates

Usage

cpx2coo(Z)

coo2cpx(coo)

Value

coordinates expressed in the cartesian/complex form

Arguments

Z

coordinates expressed in the complex form

coo

coordinates expressed in the cartesian form

See Also

Other bridges functions: as_df(), bridges, export()

Examples

Run this code
shapes[4] %>%            # from cartesian
    coo_sample(24) %>%
    coo2cpx() %T>%       # to complex
    cpx2coo()            # and back

Run the code above in your browser using DataLab