Learn R Programming

Momocs (version 1.2.9)

complex: Convert complex to/from cartesian coordinates

Description

Convert complex to/from cartesian coordinates

Usage

cpx2coo(Z)

coo2cpx(coo)

Arguments

Z

coordinates expressed in the complex form

coo

coordinates expressed in the cartesian form

Value

coordinates expressed in the cartesian/complex form

See Also

Other bridges functions: as_df, bridges, export

Examples

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

Run the code above in your browser using DataLab