package tiny_libs

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module CameraSource

Sourcetype 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;
}
Sourceval basis : ?up:Vec3.t -> eye:Vec3.t -> target:Vec3.t -> unit -> Vec3.t * Vec3.t * Vec3.t
Sourceval view : t -> Vec3.t -> Vec3.t
Sourceval focal : t -> float
Sourceval ndc : t -> aspect:float -> Vec3.t -> (float * float) option