drlippman / IMathAS

IMathAS Online Math Assessment
Other
115 stars 99 forks source link

new options for gettwopointdata macro #242

Closed nick-chura closed 3 years ago

nick-chura commented 3 years ago

I noticed that "ellipse" wasn't an option in the gettwopointdata macro, so I added "ellipse", "circlerad" and "ellipserad". The "ellipse" option mimics the others in that it returns the two points clicked in order. The "circlerad" and "ellipserad" options return [x-center, y-center, radius] and [x-center, y-center, x-radius, y-radius], respectively, so it is easy for authors to identify the circle data.