Files
batomorph/include/camera.h
2025-09-23 15:35:26 +01:00

18 lines
288 B
C

#ifndef CAMERA_H
#define CAMERA_H
#include "vec3.h"
#include <stdint.h>
typedef struct {
vec3_t pos;
vec3_t pix_origin, x_step, y_step;
} camera_t;
camera_t camera_init(
vec3_t pos, double focal_len, double viewport_height, uint32_t img_width,
uint32_t img_height);
#endif