BinPack2DRegion (struct)

A region inside of a BinPack2DContainer. A BinPack2DRegion describes both a coordinate as well as a size.

BinPack2DRegion BinPack2DRegion BinPack2DRegion

Members

BinPack2DCoord coord  
BinPack2DSize size  

Methods

  BinPack2DRegion ( in BinPack2DCoord coord, in BinPack2DSize size )
  BinPack2DRegion ( in BinPack2DRegion other )
  BinPack2DRegion ()
BinPack2DRegion Consume ! ( in BinPack2DRegion that )
Boolean Contains ? ( in BinPack2DCoord coord )
Boolean Contains ? ( in BinPack2DRegion that )
Boolean Contains ? ( in BinPack2DRegion that, io Boolean rotated )
Boolean IsEmpty ? ()
BinPack2DRegion clone ? ()

Methods in detail

BinPack2DRegion ( in BinPack2DCoord coord, in BinPack2DSize size )

constructor from coordinate and size


BinPack2DRegion ( in BinPack2DRegion other )

copy constructor


BinPack2DRegion ()

default constructor


BinPack2DRegion BinPack2DRegion.Consume! ( in BinPack2DRegion that )


Boolean BinPack2DRegion.Contains? ( in BinPack2DCoord coord )

returns true if this region contains the given coordinate


Boolean BinPack2DRegion.Contains? ( in BinPack2DRegion that )

returns true if this region can contain that region


Boolean BinPack2DRegion.Contains? ( in BinPack2DRegion that, io Boolean rotated )

returns true if this region can contain another one. additionally it will return rotation == true if that region has to be rotated to fit.


Boolean BinPack2DRegion.IsEmpty? ()

returns true if this region has no space


BinPack2DRegion BinPack2DRegion.clone? ()

clone method