Skip to content

Commit

Permalink
positive and negative angles
Browse files Browse the repository at this point in the history
  • Loading branch information
wjschne committed Feb 3, 2025
1 parent 9e6a09e commit 8b63975
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions vignettes/articles/angles.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,21 @@ $$
2 * degree(180)
```


## Positive and Negative Angles

You can ensure that an angle is always positive or negative with the `@positive` and `@negative` attributes.

```{r}
# Display a negative angle a as positive angle
degree(-30)@positive
# Display a positive angle as a negative angle
degree(330)@negative
```



# Trigonometry

The outputs of `degree`, `radian`, and `turn` can take the three standard trigonometric functions
Expand Down

0 comments on commit 8b63975

Please sign in to comment.