Refactor : Deleted enum type RayType and specialized Ray.
Refactor : Deleted enum type RayType and specialized Ray.