function TF = satisfiesXConstraint(this, X)
% Returns true for each row for which xConstraint is
% satisfied. An empty Xconstraint is always satisfied.
%

%   Copyright 2016-2022 The MathWorks, Inc.

if isempty(this.PrivOptions.XConstraintFcn)
    TF = true(size(X,1),1);
else
    XTable = untransformPoints(this, X, true);
    XTable = applyConditionalVariableFcn(this, XTable);
    TF = applyXConstraint(this, XTable);
end
end
