Fix global variable leakage, and join sequential variable definitions.
Move calculations of values to where they are needed.
Clean up code to follow Paper.js coding conventions.
Fix documentation since Line#vector will be documented as a simple accessor.
Simply delegate to Point#getLength() as we already have it.