12 lines
369 B
C++
12 lines
369 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("x",nargout,nargin-1,0);
|
|
Shared obj = unwrap_shared_ptr<Point2>(in[0], "Point2");
|
|
double result = obj->x();
|
|
out[0] = wrap< double >(result);
|
|
}
|