rename out to output to match others
added clone function to Line
extra null check on output to match rectangle
added clone and setTo functions
may as well use the setter logic,  saves duplicating code
typo
fixed arguments
Merge pull request #1130 from beeglebug/feature/clone-consistency

Improved consistency of clone methods on geometry classes