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