cannon
Version:
A lightweight 3D physics engine written in JavaScript.
25 lines (21 loc) • 405 B
JavaScript
module.exports = Vec3Pool;
var Vec3 = require('../math/Vec3');
var Pool = require('./Pool');
/**
* @class Vec3Pool
* @constructor
* @extends Pool
*/
function Vec3Pool(){
Pool.call(this);
this.type = Vec3;
}
Vec3Pool.prototype = new Pool();
/**
* Construct a vector
* @method constructObject
* @return {Vec3}
*/
Vec3Pool.prototype.constructObject = function(){
return new Vec3();
};