Add Vec2 and Vec3 defiitions to jsdoc

This commit is contained in:
Ryan Huffman 2016-11-16 11:56:42 -08:00
parent 7e9df928f4
commit 179eed5d11

View file

@ -20,6 +20,24 @@
#include "GLMHelpers.h"
/**jsdoc
* A 2-dimensional vector.
*
* @typedef Vec2
* @property {float} x X-coordinate of the vector.
* @property {float} y Y-coordinate of the vector.
*/
/**jsdoc
* A 3-dimensional vector.
*
* @typedef Vec3
* @property {float} x X-coordinate of the vector.
* @property {float} y Y-coordinate of the vector.
* @property {float} z Z-coordinate of the vector.
*/
/// Scriptable interface a Vec3ernion helper class object. Used exclusively in the JavaScript API
class Vec3 : public QObject {
Q_OBJECT