protected double getAngleFromSlope() {
        double angle = 0.0f;
        angle = Math.atan(slope);
        if (direction == Direction.LEFT) {
            angle += Math.PI;
        }
        return angle;
    }