How to figure out circumference of circle using corona sdk

How can I figure out the circumference of a circle I have drawn in corona sdk because I am using it for my homework but can’t find an api for that even though I did look at all the apis even the math ones which I didn’t really understand that well but none mentioned circles or circumferences and I am using corona for my homework for school thanks? [import]uid: 211931 topic_id: 37095 reply_id: 67095[/import]

to draw a circle with corona you have to know the radius or diameter. circumference = pi * diameter [import]uid: 32462 topic_id: 37095 reply_id: 145346[/import]

I tried to do the radius times pi but it didn’t work I did exactly local c = 10 * pi print © but it said it is nil? [import]uid: 211931 topic_id: 37095 reply_id: 145369[/import]

use math.pi … it thinks you have a var named pi [import]uid: 32462 topic_id: 37095 reply_id: 145371[/import]

to draw a circle with corona you have to know the radius or diameter. circumference = pi * diameter [import]uid: 32462 topic_id: 37095 reply_id: 145346[/import]

I tried to do the radius times pi but it didn’t work I did exactly local c = 10 * pi print © but it said it is nil? [import]uid: 211931 topic_id: 37095 reply_id: 145369[/import]

use math.pi … it thinks you have a var named pi [import]uid: 32462 topic_id: 37095 reply_id: 145371[/import]