KiCad PCB EDA Suite
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
trackball.h File Reference

Go to the source code of this file.

Functions

void trackball (double q[4], double p1x, double p1y, double p2x, double p2y)
 
void add_quats (double *q1, double *q2, double *dest)
 
void build_rotmatrix (float m[4][4], double q[4])
 
void axis_to_quat (double a[3], double phi, double q[4])
 

Function Documentation

◆ add_quats()

void add_quats ( double *  q1,
double *  q2,
double *  dest 
)

◆ axis_to_quat()

void axis_to_quat ( double  a[3],
double  phi,
double  q[4] 
)

Definition at line 217 of file trackball.cpp.

References vcopy(), vnormal(), and vscale().

Referenced by trackball().

◆ build_rotmatrix()

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

Definition at line 321 of file trackball.cpp.

Referenced by TRACK_BALL::Drag(), and TRACK_BALL::Interpolate().

◆ trackball()

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