16 lines
488 B
C++
16 lines
488 B
C++
// automatically generated by wrap
|
|
#include <wrap/matlab.h>
|
|
#include <set>
|
|
#include <Point3.h>
|
|
using namespace geometry;
|
|
typedef boost::shared_ptr<Point3> Shared;
|
|
void mexFunction(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
checkArguments("norm",nargout,nargin-1,0);
|
|
mxArray* mxh = mxGetProperty(in[0],0,"self");
|
|
Shared* self = *reinterpret_cast<Shared**> (mxGetPr(mxh));
|
|
Shared obj = *self;
|
|
double result = obj->norm();
|
|
out[0] = wrap< double >(result);
|
|
}
|