More visualisation stuff; convert Vec2D from (Float, Float) to a case class.