Returns a point on cardinal direction, or 'center' for the middle.
cardinal({x: 10, y:10, width:100, height: 20}, 'center'); Copy
cardinal({x: 10, y:10, width:100, height: 20}, 'center');
Rectangle
Cardinal direction or 'center'
Point
Returns a point on cardinal direction, or 'center' for the middle.