September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
|
|
@ -15,10 +15,12 @@ function new_circle(object x=0, atom y=0, atom r=0)
|
|||
r = y -- assume r got passed in y
|
||||
return {x,r} -- {point,r}
|
||||
end if
|
||||
return {{x,y},r}
|
||||
return {{x,y},r} -- {point,r}
|
||||
-- (or {new_point(x,y),r} if you prefer)
|
||||
end function
|
||||
|
||||
point p = new_point(4,5)
|
||||
circle c = new_circle(p,6)
|
||||
?p
|
||||
?c
|
||||
circle c1 = new_circle(p,6),
|
||||
c2 = new_circle(4,5,6}
|
||||
?c1
|
||||
?c2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue