QuaternionCurve.js 487 B

12345678910111213141516171819
  1. function QuaternionCurve() {
  2. if(arguments[0] != "__skip_ptr__") {
  3. this.__ptr = Polycode.QuaternionCurve()
  4. }
  5. }
  6. Duktape.fin(QuaternionCurve.prototype, function (x) {
  7. if (x === QuaternionCurve.prototype) {
  8. return;
  9. }
  10. Polycode.QuaternionCurve__delete(x.__ptr)
  11. })
  12. QuaternionCurve.prototype.interpolate = function(t,useShortestPath) {
  13. var retVal = new Quaternion("__skip_ptr__")
  14. retVal.__ptr = Polycode.QuaternionCurve_interpolate(this.__ptr, t, useShortestPath)
  15. return retVal
  16. }