package tiny_libs

  1. Overview
  2. Docs
From-scratch libraries for teaching: graphics, audio, compression, crypto, networking and more

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.3.6.tar.gz
md5=7c636383d146d30ac6f2fa234a6253c8
sha512=c79f3823c5f8f57e5038eb640d487c61168b84aa07c61999d6622ef9fd0c890e2b03b4c6a7cdbbe9352a49e25dda00ac7bb14693cee8e3d7beeed251351a2af0

doc/tiny_libs.physics_3d/Body3d/index.html

Module Body3dSource

Sourcetype t = {
  1. pos : Vec3.t;
  2. vel : Vec3.t;
  3. orientation : Quat.t;
  4. spin : Vec3.t;
  5. mass : float;
  6. inertia : Mat3.t;
  7. inv_inertia : Mat3.t;
}
Sourceval never_turns : Mat3.t
Sourceval make : ?vel:Vec3.t -> ?orientation:Quat.t -> ?spin:Vec3.t -> ?mass:float -> ?inertia:Mat3.t -> Vec3.t -> t
Sourceval with_inertia : Mat3.t -> t -> t
Sourceval inertia_world : t -> Mat3.t
Sourceval inv_inertia_world : t -> Mat3.t
Sourceval point_velocity : t -> Vec3.t -> Vec3.t
Sourceval box : mass:float -> Vec3.t -> Mat3.t
Sourceval solid_sphere : mass:float -> radius:float -> Mat3.t
Sourceval shifted : mass:float -> Vec3.t -> Mat3.t -> Mat3.t