Standard_Real Extrema_GenLocateExtPC::SquareDistance() const
{
- if (!myDone) { throw StdFail_NotDone(); }
+ if (!IsDone())
+ {
+ throw StdFail_NotDone();
+ }
return myF.SquareDistance(1);
}
Standard_Boolean Extrema_GenLocateExtPC::IsMin () const
{
- if (!myDone) { throw StdFail_NotDone(); }
+ if (!IsDone())
+ {
+ throw StdFail_NotDone();
+ }
return myF.IsMin(1);
}
const POnC & Extrema_GenLocateExtPC::Point () const
{
- if (!myDone) { throw StdFail_NotDone(); }
+ if (!IsDone())
+ {
+ throw StdFail_NotDone();
+ }
return myF.Point(1);
}