Exemplo n.º 1
0
 //============================================================
 // <T>构造整数矩形。</T>
 //
 // @param location 位置
 // @param size 大小
 //============================================================
 public SIntRectangle(SIntPoint2 location, SIntSize2 size)
 {
     Left   = location.X;
     Top    = location.Y;
     Width  = size.Width;
     Height = size.Height;
 }
Exemplo n.º 2
0
 //============================================================
 // <T>加法运算。</T>
 //
 // @param point 二维点
 // @param scale 缩放
 //============================================================
 public void Add(SIntPoint2 point, float scale)
 {
     X += (int)(point.X * scale);
     Y += (int)(point.Y * scale);
 }
Exemplo n.º 3
0
 //============================================================
 // <T>加法运算。</T>
 //
 // @param point 二维点
 //============================================================
 public void Add(SIntPoint2 point)
 {
     X += point.X;
     Y += point.Y;
 }