12 lines
367 B
C++
12 lines
367 B
C++
// automatically generated by wrap
|
|
#include <wrap/matlab.h>
|
|
#include <Point2.h>
|
|
typedef boost::shared_ptr<Point2> Shared;
|
|
void mexFunction(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
checkArguments("dim",nargout,nargin-1,0);
|
|
Shared obj = unwrap_shared_ptr<Point2>(in[0], "Point2");
|
|
int result = obj->dim();
|
|
out[0] = wrap< int >(result);
|
|
}
|