/// <summary> /// Gets the curves bounding rect. /// </summary> /// <returns>The curves bounding rect.</returns> private Rect GetCurvesBoundingRect() { Rect xBounds = NormalCurveRendererWrapper.GetBounds(m_CurveXProperty.animationCurveValue); Rect yBounds = NormalCurveRendererWrapper.GetBounds(m_CurveYProperty.animationCurveValue); Rect zBounds = NormalCurveRendererWrapper.GetBounds(m_CurveZProperty.animationCurveValue); Rect output = new Rect(xBounds); output = output.Encapsulate(yBounds); return output.Encapsulate(zBounds); }