using ray casting algorithm