more vector functions; fix nearestPoint; add some drawing helpers