Constructor PackPlacement
- Namespace
- GeometryHelper.Packing
- Assembly
- GeometryHelper.dll
PackPlacement(int, GeoVector2, GeoRectangle2, bool)
Initializes a new instance of the PackPlacement struct for a box, whose ViewPolygon is then the box itself as a polygon of four points.
public PackPlacement(int sheetIndex, GeoVector2 translation, GeoRectangle2 viewBox, bool placed)
Parameters
sheetIndexintWhich sheet the box goes on, the first nought; -1 when it goes on none.
translationGeoVector2How far the box moves.
viewBoxGeoRectangle2The box, moved.
placedboolWhether the box found a place.
PackPlacement(int, GeoVector2, GeoRectangle2, GeoPolygon2, bool)
Initializes a new instance of the PackPlacement struct for a polygon.
public PackPlacement(int sheetIndex, GeoVector2 translation, GeoRectangle2 viewBox, GeoPolygon2 viewPolygon, bool placed)
Parameters
sheetIndexintWhich sheet the polygon goes on, the first nought; -1 when it goes on none.
translationGeoVector2How far the polygon moves.
viewBoxGeoRectangle2The upright box round the polygon, moved.
viewPolygonGeoPolygon2The polygon, moved.
placedboolWhether the polygon found a place.