"codeinput">
rect = makeCartRect(rect_pos, Lx, Ly, theta, num_points)
rect = makeCartRect(rect_pos, Lx, Ly, theta, num_points, plot_rect)
</pre>

<h2>Description</h2>

<p><code>makeCartRect</code> creates an array of the Cartesian coordinates of points evenly distributed over a rectangle. The position of the rectangle is set by <code>rect_pos</code>, and its height and width are specified by <code>Lx</code> and <code>Ly</code>. If <code>rect_pos</code> is given as a 2 element vector, the Cartesian rectangle