File: trackball.h

package info (click to toggle)
freemat 4.0-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 174,736 kB
  • ctags: 67,053
  • sloc: cpp: 351,060; ansic: 255,892; sh: 40,590; makefile: 4,323; perl: 4,058; asm: 3,313; pascal: 2,718; fortran: 1,722; ada: 1,681; ml: 1,360; cs: 879; csh: 795; python: 430; sed: 162; lisp: 160; awk: 5
file content (12 lines) | stat: -rw-r--r-- 287 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef __trackball_h_
#define __trackball_h__

void trackball(float q[4], float p1x, float p1y, float p2x, float p2y);

void build_rotmatrix(float m[4][4], float q[4]);

void build_rotmatrix(double m[4][4], float q[4]);

void add_quats(float q1[4], float q2[4], float dest[4]);

#endif