title: How to test if a circle is in a rotated object
body: <p>I'm using Raphaeljs to create a web application for creating diagrams. One of the shapes is a diamond, which is just a rectangle rotated 45 degrees. I need to test whether a circle falls within the rotated image, and I'm not sure how to go about it. </p>