/// <summary> /// /// </summary> public Rect2D ToAbs(Rect2D localRect) { return(localRect.Offset(AbsoluteRect.Location.ToSize())); }
/// <summary> /// トップレベルエレメントの座標系に変換する。 /// </summary> private Rect2D ToScreenCoord(Rect2D rect) { return(rect .Offset(_contentOrigin.InvertSign().ToSize()) .Offset(_viewport.Location.ToSize())); }
/// <summary> /// /// </summary> public Rect2D ToLocal(Rect2D absRect) { return(absRect.Offset(AbsoluteRect.Location.ToSize().InvertSign())); }