Write code to calculate angle of squirrel inside in java