11 lines
357 B
C++
11 lines
357 B
C++
// automatically generated by wrap on 2010-Feb-23
|
|
#include <wrap/matlab.h>
|
|
#include <Point2.h>
|
|
void mexFunction(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
checkArguments("x",nargout,nargin-1,0);
|
|
shared_ptr<Point2> self = unwrap_shared_ptr< Point2 >(in[0],"Point2");
|
|
double result = self->x();
|
|
out[0] = wrap< double >(result);
|
|
}
|