title: Drawing rectangle between two points with arbitrary width
body: <p>I'm trying to draw a line between two (2D) points when the user swipes their finger across a touch screen. To do this, I plan on drawing a rectangle on every touch update between the X and Y of the previous touch update and the X and Y of the latest touch update. This should create a continuous and solid line as the user swipes their finger across the screen. However, I would also like this line to have an arbitrary width. My question is, how should I go about calculating the coordinates I need for each rectangle (x1, y1, x2, y2)? </p>
  
  <p>--</p>
  
  <p>Also: if anyone has any information on how I could then go about applying anti-aliasing to this line it'd be a massive help.</p>