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

Gets the bounds of the specified tile.

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

Syntax

         
 C#  Visual Basic  Visual C++ 
public bool GetTileBounds(
	int tx,
	int tz,
	bool includeBorder,
	out Vector3 boundsMin,
	out Vector3 boundsMax
)
Public Function GetTileBounds ( _
	tx As Integer, _
	tz As Integer, _
	includeBorder As Boolean, _
	<OutAttribute> ByRef boundsMin As Vector3, _
	<OutAttribute> ByRef boundsMax As Vector3 _
) As Boolean
public:
bool GetTileBounds(
	int tx, 
	int tz, 
	bool includeBorder, 
	[OutAttribute] Vector3% boundsMin, 
	[OutAttribute] Vector3% boundsMax
)

Parameters

tx
Int32
The x-index of the tile within the tile grid. (x, z) [0 <= value < Width]
tz
Int32
The z-index of the tile within the tile grid. (x, z) [0 <= value < Depth]
includeBorder
Boolean
True if the bounds should be expanded by the border size configuration setting.
boundsMin
Vector3%
The minimum AABB bounds of the tile.
boundsMax
Vector3%
The maximum AABB bounds of the tile.

Return Value

True if the tile is valid, otherwise false.

See Also