Wrapping Functions When Matrix is Involved
- Posted by Icy_Viking May 26, 2019
- 1589 views
Hello,
I know a matrix is an array of numbers. However I'm not sure how one would wrap them when making a wrapper. For example.
C Code
http://newtondynamics.com/wiki/index.php5?title=NewtonCreateBox --Documentation in case needed NewtonCollision* NewtonCreateBox( const NewtonWorld* newtonWorld, dFloat dx, dFloat dy, dFloat dz, int shapeID, const dFloat *offsetMatrix)
Eu Code
public constant xNewtonCreateBox = define_c_func(nd,"NewtonCreateBox",{C_POINTER,C_FLOAT,C_FLOAT,C_FLOAT,C_INT,C_POINTER},C_POINTER) public function NewtonCreateBox(atom world,atom x,atom y,atom z,atom id,atom matrix) return c_func(xNewtonCreateBox,{world,x,y,z,id,matrix}) end function
The code above appears correct, but I feel I am wrapping part of it wrong, perhaps? I know the matrix is a pointer float.