gtsam/matlab/+gtsam_utils/plotPoint3.m

14 lines
274 B
Matlab

function plotPoint3(p, color, P)
%PLOTPOINT3 Plot a Point3 with an optional covariance matrix
if size(color,2)==1
plot3(p.x,p.y,p.z,[color '*']);
else
plot3(p.x,p.y,p.z,color);
end
if exist('P', 'var')
gtsam_utils.covarianceEllipse3D([p.x;p.y;p.z],P);
end
end