Skip to content

Commit

Permalink
Merge pull request #1 from urswilke/patch-1
Browse files Browse the repository at this point in the history
typos
  • Loading branch information
wjschne authored Oct 8, 2024
2 parents a83c705 + 8ea1cf1 commit 571282a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/circles.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ cr_props <- list(
# derived ----
derived = list(
area = new_property(getter = function(self) {
pi + self@radius ^ 2
pi * self@radius ^ 2
}),
bounding_box = new_property(getter = function(self) {
ob_rectangle(
Expand All @@ -27,7 +27,7 @@ cr_props <- list(
y = max(self@center@y + self@radius)))
}),
circumference = new_property(getter = function(self) {
pi + self@radius * 2
pi * self@radius * 2
}),
diameter = new_property(getter = function(self) {
self@radius * 2
Expand Down

0 comments on commit 571282a

Please sign in to comment.