View source: R/rotationMatrix.R

rotate3D | R Documentation |

Render a 3-Dimensional projection matrix given positive or negative degree changes in yaw, pitch, and / or roll.

```
rotate3D(yaw, pitch, roll)
```

`yaw` |
z-axis change in degrees; look left (+) or right (-). Consider this a rotation on the x-y plane. |

`pitch` |
y-axis change in degrees; look up (-) or down (+). Consider this a rotation on the x-z plane. |

`roll` |
x-axis change in degrees; this change appears as if you touch head to shoulders: right roll (+) and left roll (-). |

When plotting with the package scatterplot3d, the default perspective is such that the pitch action appears as a roll while the roll action appears as a pitch.

This function is used only in data generation of the package vignette. This function is called by rotateScale3D().

A 3 x 3 projection matrix corresponding to the degree changes entered.

Called by: `rotateScale3D`

.

```
rotate3D(yaw = -10, pitch = 0, roll = 15)
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.