19 void mexFunction(
int nlhs, mxArray *plhs[],
int nrhs,
const mxArray *prhs[])
25 vector<MxArray> rhs(prhs, prhs+nrhs);
26 bool rect_variant = (rhs[0].numel() == 4);
29 Point pt1(rhs[1].toPoint()), pt2(rhs[2].toPoint());
32 inside = clipLine(rhs[0].toSize(), pt1, pt2);
34 inside = clipLine(rhs[0].toRect(), pt1, pt2);
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
Main entry called from Matlab.
mxArray object wrapper for data conversion and manipulation.
void nargchk(bool cond)
Alias for input/ouput arguments number check.
Global constant definitions.