コード例 #1
0
ファイル: AbstractOp.cs プロジェクト: hbloom1783/KaijuRL
        public TShapeInfo MakeShapeStorageInfo <TPoint>(IntRect storageRect, Func <TPoint, bool> isInside)
        {
            var shapeInfo = (TShapeInfo)(object)new ShapeStorageInfo <TPoint>(storageRect, isInside);

            return(MakeShapeStorageInfo(shapeInfo));
        }
コード例 #2
0
 public ShapeStorageInfo(IntRect storageRect, Func <TPoint, bool> contains)
 {
     this.storageRect = storageRect;
     this.contains    = contains;
 }
コード例 #3
0
ファイル: IntRect.cs プロジェクト: hbloom1783/KaijuRL
		public IntRect Difference(IntRect otherRect)
		{
			// Not tight
			return this;
		}