Пример #1
0
 /// <summary>
 /// Is the given box the same size as this box?
 /// </summary>
 /// <returns><c>true</c>, if size is the same, <c>false</c> otherwise.</returns>
 /// <param name="box">Box.</param>
 public bool SameSize(AGSBoundingBox box)
 {
     return(MathUtils.FloatEquals(Width, box.Width) && MathUtils.FloatEquals(Height, box.Height));
 }
Пример #2
0
 public bool Equals(AGSBoundingBox square)
 {
     return(equals(BottomLeft, square.BottomLeft) && equals(BottomRight, square.BottomRight) &&
            equals(TopLeft, square.TopLeft) && equals(TopRight, square.TopRight));
 }