[This is preliminary documentation and is subject to change.]

Derives the width and depth of a tile grid based on the provided parameters.

Namespace: org.critterai.nmgen
Assembly: cai-nmgen (in cai-nmgen.dll) Version: 0.4.0.0 (0.4.0.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static void DeriveSizeOfTileGrid(
	Vector3 boundsMin,
	Vector3 boundsMax,
	float xzCellSize,
	int tileSize,
	out int width,
	out int depth
)
Public Shared Sub DeriveSizeOfTileGrid ( _
	boundsMin As Vector3, _
	boundsMax As Vector3, _
	xzCellSize As Single, _
	tileSize As Integer, _
	<OutAttribute> ByRef width As Integer, _
	<OutAttribute> ByRef depth As Integer _
)
public:
static void DeriveSizeOfTileGrid(
	Vector3 boundsMin, 
	Vector3 boundsMax, 
	float xzCellSize, 
	int tileSize, 
	[OutAttribute] int% width, 
	[OutAttribute] int% depth
)

Parameters

boundsMin
Vector3
The minimum bounds.
boundsMax
Vector3
The maximum bounds.
xzCellSize
Single
The cell size on the xz-plane. (XZCellSize)
tileSize
Int32
The tile size. (TileSize)
width
Int32%
The number of tiles along the x-axis.
depth
Int32%
The number of tiles along the z-axis.

Remarks

This method does not validate the parameters.

See Also