Added cosine and sine functions.
Added scale method.
Removed useless boolean.
New collision handling.