2012-02-07 03:45:40 +08:00
|
|
|
// automatically generated by wrap
|
2011-10-14 02:41:56 +08:00
|
|
|
#include <wrap/matlab.h>
|
|
|
|
#include <Point2.h>
|
2012-06-29 00:13:22 +08:00
|
|
|
typedef boost::shared_ptr<Point2> Shared;
|
2011-10-14 02:41:56 +08:00
|
|
|
void mexFunction(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
|
|
{
|
|
|
|
checkArguments("y",nargout,nargin-1,0);
|
2012-07-03 02:18:11 +08:00
|
|
|
Shared obj = unwrap_shared_ptr<Point2>(in[0], "Point2");
|
2012-06-29 00:13:22 +08:00
|
|
|
double result = obj->y();
|
2011-10-14 02:41:56 +08:00
|
|
|
out[0] = wrap< double >(result);
|
|
|
|
}
|