gtsam/wrap/tests/expected/Point3.m

84 lines
2.6 KiB
Matlab
Raw Normal View History

2012-08-28 01:54:25 +08:00
%-------Constructors-------
2012-08-29 05:44:45 +08:00
%POINT3(double x, double y, double z)
%
2012-08-28 01:54:25 +08:00
%-------Methods-------
2012-08-29 05:44:45 +08:00
%NORM() : returns double
%
2012-08-28 01:54:25 +08:00
%-------Static Methods-------
2012-08-29 05:44:45 +08:00
%STATICFUNCTIONRET(double z) : returns Point3
%STATICFUNCTION() : returns double
2012-08-28 01:54:25 +08:00
%
%For more detailed documentation on GTSAM go to our Doxygen page, which can be found at http://research.cc.gatech.edu/borg/sites/edu.borg/html/index.html
classdef Point3 < handle
properties
ptr_Point3 = 0
end
methods
function obj = Point3(varargin)
if nargin == 2 && isa(varargin{1}, 'uint64') && varargin{1} == uint64(5139824614673773682)
my_ptr = varargin{2};
geometry_wrapper(11, my_ptr);
elseif nargin == 3 && isa(varargin{1},'double') && isa(varargin{2},'double') && isa(varargin{3},'double')
my_ptr = geometry_wrapper(12, varargin{1}, varargin{2}, varargin{3});
else
error('Arguments do not match any overload of Point3 constructor');
end
obj.ptr_Point3 = my_ptr;
end
function delete(obj)
geometry_wrapper(13, obj.ptr_Point3);
end
function display(obj), obj.print(''); end
function disp(obj), obj.display; end
function varargout = norm(this, varargin)
2012-08-29 05:44:45 +08:00
% NORM usage: NORM() : returns double
2012-08-28 01:54:25 +08:00
% Doxygen can be found at http://research.cc.gatech.edu/borg/sites/edu.borg/html/index.html
%
% Method Overloads
% norm()
if length(varargin) == 0
varargout{1} = geometry_wrapper(14, this, varargin{:});
else
error('Arguments do not match any overload of function Point3.norm');
end
end
end
methods(Static = true)
function varargout = StaticFunctionRet(varargin)
2012-08-29 05:44:45 +08:00
% STATICFUNCTIONRET usage: STATICFUNCTIONRET(double z) : returns Point3
2012-08-28 01:54:25 +08:00
% Doxygen can be found at http://research.cc.gatech.edu/borg/sites/edu.borg/html/index.html
%
2012-08-29 05:44:45 +08:00
% Usage
% STATICFUNCTIONRET(double z)
if length(varargin) == 1 && isa(varargin{1},'double')
varargout{1} = geometry_wrapper(15, varargin{:});
else
error('Arguments do not match any overload of function Point3.StaticFunctionRet');
end
end
function varargout = StaticFunction(varargin)
2012-08-29 05:44:45 +08:00
% STATICFUNCTION usage: STATICFUNCTION() : returns double
2012-08-28 01:54:25 +08:00
% Doxygen can be found at http://research.cc.gatech.edu/borg/sites/edu.borg/html/index.html
%
2012-08-29 05:44:45 +08:00
% Usage
% STATICFUNCTION()
if length(varargin) == 0
varargout{1} = geometry_wrapper(16, varargin{:});
else
error('Arguments do not match any overload of function Point3.StaticFunction');
end
end
end
end