function y = hgconvertunits(fig,x,srcunits,destunits, ref)
%HGCONVERTUNITS Converts units on a handle graphics object
%   This is an internal helper m-file for Handle Graphics.

%   Y = HGCONVERTUNITS(FIG, X, SRCUNITS, DESTUNITS, REF) converts
%   rectangle X in figure FIG from units SRCUNITS to DESTUNITS
%   using the object with handle REF as the reference container for
%   normalized units. REF can be the root object.

%   Copyright 1984-2004 The MathWorks, Inc.
