Module Camera

type t = {
  1. eye : Vec3.t;
  2. target : Vec3.t;
  3. up : Vec3.t;
  4. fov : float;
  5. ortho : float;
  6. near : float;
  7. far : float;
}
val basis : ?up:Vec3.t -> eye:Vec3.t -> target:Vec3.t -> unit -> Vec3.t * Vec3.t * Vec3.t
val view : t -> Vec3.t -> Vec3.t
val focal : t -> float
val ndc : t -> aspect:float -> Vec3.t -> (float * float) option