QuaternionCurve.lua 391 B

1234567891011121314
  1. class "QuaternionCurve"
  2. function QuaternionCurve:interpolate(t, useShortestPath)
  3. local retVal = Polycode.QuaternionCurve_interpolate(self.__ptr, t, useShortestPath)
  4. if retVal == nil then return nil end
  5. local __c = _G["Quaternion"]("__skip_ptr__")
  6. __c.__ptr = retVal
  7. return __c
  8. end
  9. function QuaternionCurve:__delete()
  10. if self then Polycode.delete_QuaternionCurve(self.__ptr) end
  11. end