i set up a camera in ray tracing but when i trying to draw sphere, the object goes away from the origin even if i put camera at 0.0.0 origin,

that's my code:

```
t_camera    camera(t_canvas *canvas, t_scene *sc)
{
    t_camera    cam;
    double      focal_len;
    double      viewport_height;

    viewport_height = tan(sc->cam.fov * 13.14 / 180);
    focal_len = 1.0;
    cam.orig = sc->cam.cen;
   cam.viewport_h = viewport_height;
   cam.viewport_w = viewport_height * canvas->aspect_ratio;
   cam.focal_len = focal_len;
   cam.horizontal = make_vec(cam.viewport_w, 0, 0);
   cam.vertical = make_vec(0, cam.viewport_h, 0);
   // left corner, origin - horizontal / 2 - vertical / 2 - vec3(0,0,focal_length)
   cam.left_bottom = sub_vec(sub_vec(sub_vec(cam.orig, div_vect(cam.horizontal, 2)),
                            div_vect(cam.vertical, 2)), make_vec(0, 0, focal_len));
   return (cam);
}

```

sub\_vec is subtraction of vector and div\_vect is dividing a vector,
can any one please help.