QuatTriple.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. function QuatTriple() {
  2. if(arguments[0] != "__skip_ptr__") {
  3. this.__ptr = Polycode.QuatTriple()
  4. }
  5. Object.defineProperties(this, {
  6. 'q1': { enumerable: true, configurable: true, get: QuatTriple.prototype.__get_q1, set: QuatTriple.prototype.__set_q1},
  7. 'q2': { enumerable: true, configurable: true, get: QuatTriple.prototype.__get_q2, set: QuatTriple.prototype.__set_q2},
  8. 'q3': { enumerable: true, configurable: true, get: QuatTriple.prototype.__get_q3, set: QuatTriple.prototype.__set_q3},
  9. 'time': { enumerable: true, configurable: true, get: QuatTriple.prototype.__get_time, set: QuatTriple.prototype.__set_time}
  10. })
  11. }
  12. QuatTriple.prototype.__get_q1 = function() {
  13. var retVal = new Quaternion("__skip_ptr__")
  14. retVal.__ptr = Polycode.QuatTriple__get_q1(this.__ptr)
  15. return retVal
  16. }
  17. QuatTriple.prototype.__set_q1 = function(val) {
  18. Polycode.QuatTriple__set_q1(this.__ptr, val.__ptr)
  19. }
  20. QuatTriple.prototype.__get_q2 = function() {
  21. var retVal = new Quaternion("__skip_ptr__")
  22. retVal.__ptr = Polycode.QuatTriple__get_q2(this.__ptr)
  23. return retVal
  24. }
  25. QuatTriple.prototype.__set_q2 = function(val) {
  26. Polycode.QuatTriple__set_q2(this.__ptr, val.__ptr)
  27. }
  28. QuatTriple.prototype.__get_q3 = function() {
  29. var retVal = new Quaternion("__skip_ptr__")
  30. retVal.__ptr = Polycode.QuatTriple__get_q3(this.__ptr)
  31. return retVal
  32. }
  33. QuatTriple.prototype.__set_q3 = function(val) {
  34. Polycode.QuatTriple__set_q3(this.__ptr, val.__ptr)
  35. }
  36. QuatTriple.prototype.__get_time = function() {
  37. return Polycode.QuatTriple__get_time(this.__ptr)
  38. }
  39. QuatTriple.prototype.__set_time = function(val) {
  40. Polycode.QuatTriple__set_time(this.__ptr, val)
  41. }
  42. Duktape.fin(QuatTriple.prototype, function (x) {
  43. if (x === QuatTriple.prototype) {
  44. return;
  45. }
  46. Polycode.QuatTriple__delete(x.__ptr)
  47. })