changed Ray2 to use doubles instead of floats
fixed some multiplication in Vector2