Update src/core/Raycaster.js

small improvement in speed.