gCAD3D 2.40
ut_quat.c File Reference

Quaternion-utilities. More...

#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../ut/ut_geo.h"

Functions

int UQT_qt_vcar (Quat *qu, double angle, Vector *axis)
 
int UQT_qt_vxvz (double *q, Vector *vx, Vector *vz)
 
int UQT_vcar_qt (Vector *vc, double *ar, double *q)
 
int UQT_dump (double *q)
 
int UQT_qt_3vc (double *quat, Vector *vx, Vector *vy, Vector *vz)
 
int UQT_3vc_qt (Vector *vx, Vector *vy, Vector *vz, Quat *qu)
 

Detailed Description

Quaternion-utilities.

=====================================================
List_functions_start:
UQT_qt_vxvz VX-Vec + VZ-Vec --> quat
UQT_qt_3vc 3 vecs --> quat
UQT_qt_vcar Vec + Angle --> quat
UQT_3vc_qt quat --> 3 vecs
UQT_vcar_qt quat --> Vec + Angle
UQT_dump dump quat
List_functions_end:
=====================================================

Function Documentation

int UQT_qt_vcar ( Quat qu,
double  angle,
Vector axis 
)
int UQT_qt_vxvz ( double *  q,
Vector vx,
Vector vz 
)
int UQT_vcar_qt ( Vector vc,
double *  ar,
double *  q 
)
int UQT_dump ( double *  q)
int UQT_qt_3vc ( double *  quat,
Vector vx,
Vector vy,
Vector vz 
)
int UQT_3vc_qt ( Vector vx,
Vector vy,
Vector vz,
Quat qu 
)