impl Ray & Sphere
impl checking intersection between ray and objects