Click or drag to resize

Bin2DT Constructor (Int32, Int32, Single, Single, Vector2)

Creates a new Bin.

Namespace:  Archon.SwissArmyLib.Partitioning
Assembly:  Archon.SwissArmyLib (in Archon.SwissArmyLib.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public Bin2D(
	int gridWidth,
	int gridHeight,
	float cellWidth,
	float cellHeight,
	Vector2 origin
)
Request Example View Source

Parameters

gridWidth
Type: SystemInt32
The width of the grid.
gridHeight
Type: SystemInt32
The height of the grid.
cellWidth
Type: SystemSingle
The width of a cell.
cellHeight
Type: SystemSingle
The height of a cell.
origin
Type: Vector2
The coordinate of the bottom left point of the grid.
See Also