SOFA API  ca665544
Open source framework for multi-physics simuation
sofa::helper::visual::Trackball Class Reference

#include <Trackball.h>

Public Member Functions

 Trackball ()
 
 ~Trackball ()
 
void SetQuaternion (sofa::type::Quat< SReal > Q)
 
sofa::type::Quat< SRealGetQuaternion (void)
 
void ComputeQuaternion (double p1x, double p1y, double p2x, double p2y)
 
void AxisToQuat (double a[3], double phi, double q[4])
 

Constructor details

◆ Trackball()

sofa::helper::visual::Trackball::Trackball ( )

◆ ~Trackball()

sofa::helper::visual::Trackball::~Trackball ( )

Function details

◆ AxisToQuat()

void sofa::helper::visual::Trackball::AxisToQuat ( double  a[3],
double  phi,
double  q[4] 
)

◆ ComputeQuaternion()

void sofa::helper::visual::Trackball::ComputeQuaternion ( double  p1x,
double  p1y,
double  p2x,
double  p2y 
)

◆ GetQuaternion()

type::Quat< SReal > sofa::helper::visual::Trackball::GetQuaternion ( void  )

◆ SetQuaternion()

void sofa::helper::visual::Trackball::SetQuaternion ( sofa::type::Quat< SReal Q)