Skip to content

Commit

Permalink
Merge pull request #97 from ultraleap/feature/element_standard_librar…
Browse files Browse the repository at this point in the history
…y_updates

Standard Library: Reverse circle
  • Loading branch information
GTOliver authored Apr 20, 2021
2 parents 6189a32 + 345ed1e commit 82415bf
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
#]]
namespace StandardPaths
{
#[[ A clockwise circle in the x-y plane, beginning at
# x=0, y=radius
#[[ An anti-clockwise circle in the x-y plane, beginning at
# x=radius, y=0
#]]
circle(radius:Num):Path
{
circleFunction(u:Num):Vector3
{
x = radius.mul(Num.sin(u.mul(Num.tau)))
y = radius.mul(Num.cos(u.mul(Num.tau)))
x = radius.mul(Num.cos(u.mul(Num.tau)))
y = radius.mul(Num.sin(u.mul(Num.tau)))
return = Vector3(x, y, 0)
}
return = Path(circleFunction, Bounds(0, 1))
Expand Down

0 comments on commit 82415bf

Please sign in to comment.