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/Quat/index.html

Module QuatSource

Sourcetype t = {
  1. w : float;
  2. v : Vec3.t;
}
Sourceval identity : t
Sourceval of_axis_angle : Vec3.t -> float -> t
Sourceval to_axis_angle : t -> Vec3.t * float
Sourceval mul : t -> t -> t
Sourceval conjugate : t -> t
Sourceval length : t -> float
Sourceval normalize : t -> t
Sourceval rotate : t -> Vec3.t -> Vec3.t
Sourceval to_mat3 : t -> Mat3.t
Sourceval to_euler_xyz : t -> float * float * float
Sourceval derivative : spin:Vec3.t -> t -> t
Sourceval integrate : spin:Vec3.t -> dt:float -> t -> t
Sourceval turned_by : spin:Vec3.t -> dt:float -> t -> t