function [Xcanon, InputFeasible] = legalizePoints(this, X)
% Given points X in real, transformed space, return the corresponding
% conditional-mapped, canonicalized points in the same space.
%

%   Copyright 2016-2022 The MathWorks, Inc.

XTable = untransformPoints(this, X, true);
XTable = applyConditionalVariableFcn(this, XTable);
InputFeasible = applyXConstraint(this, XTable);
XTable = canonicalizePoints(this, XTable);
Xcanon = transformPoints(this, XTable);
end
