class Vectors {

    public static Vector rotateAroundYAxis(Vector vector, double angle) {
        double cos = cos(angle);
        double sin = sin(angle);
        double x = vector.getX() * cos + vector.getZ() * sin;
        double z = vector.getX() * -sin + vector.getZ() * cos;
        
        return vector.setX(x).setZ(z);
    }

}