#include <QObject>
#include <QQuaternion>
#include <QVector3D>
Go to the source code of this file.
 | 
| class   | AbstractGem | 
|   | The AbstractGem class is the base class of all gems.  As base class all required information of a gem are stored. Also, useful algorithms for collision detection are provided. Furthermore, this class is supposed to be used within QML.  More...
  | 
|   | 
 | 
| uint  | qHash (GemType key, uint seed) | 
|   | Custom implementation of qHash. Providing hash calculation for GemType. In order to use GemType as key in QHash and QSet.  More...
  | 
|   | 
An enum describing current gem type. This enum is used for faster comparision of gems, because all gems of one type have same (objectspace) vertices. 
| Enumerator | 
|---|
| Abstract  | 
 | 
| Cube  | 
 | 
| Tetrahedron  | 
 | 
 
 
      
        
          | uint qHash  | 
          ( | 
          GemType  | 
          key,  | 
        
        
           | 
           | 
          uint  | 
          seed  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Custom implementation of qHash. Providing hash calculation for GemType. In order to use GemType as key in QHash and QSet. 
- Parameters
 - 
  
    | key | Value the hash value is calculated for  | 
    | seed |  | 
  
   
- Returns
 - Returns hash value.