Implemented rotational computation for the Portal Obstacle.

The Portal Obstacle, which teleports the laser from the entrance to its
exit, now takes the rotation of both the entrance and the exit into
consideration when shifting the laser's direction.