# PCS2CCS: Convert Polar Coordinate System to Cartesian Coordinate... In RoundAndRound: Plot Objects Moving in Orbits

## Description

Convert Polar Coordinate System to Cartesian Coordinate System.

## Usage

 ```1 2``` ```PCS2CCS(theta = 0:360, a = 1, ab = 1, orig = c(0, 0), rotation = 0, clockwise = FALSE) ```

## Arguments

 `theta` angle in PCS. `a` Semi-major (Ellipse) or Radium (Ring). `ab` Semi-major over semi-minor. ab=1 for a Ring. `orig` Reference orgin. Default = c(0, 0) `rotation` Rotation of the theta=0 `clockwise` Whether clockwise, Default = FALSE

## Value

(x,y) in Cartesian Coordinate System.

## Examples

 ``` 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17``` ```x1=PCS2CCS(a=10, ab=1.5) x2=PCS2CCS(a=9, ab=1.2) c1 = ab2c(a=10, ab=1.5) c2 = ab2c(a=9, ab=1.2) plot(x1, type='n', xlim=c(-10,10), ylim=c(-10,10), asp=1) abline(h=0, v=0, asp=1, lty=2) lines(x1, col=2); points(c1, 0, col=2) lines(x2, col=3); points(c2, 0, col=3) # Test 2 x1=PCS2CCS(a=10, ab=1.5, clockwise = FALSE, rotation=0); x2=PCS2CCS(a=8, ab=1.5, clockwise = FALSE, rotation=45); plot(x1, asp=1, col=terrain.colors(nrow(x1)), pch=19) points(x2, asp=1, col=terrain.colors(nrow(x1))) ```

RoundAndRound documentation built on May 2, 2019, 6:50 a.m.