Axiom.Core.StaticGeometry.GetRegionBounds C# (CSharp) Method

GetRegionBounds() protected method

protected GetRegionBounds ( ushort x, ushort y, ushort z ) : Axiom.MathLib.AxisAlignedBox
x ushort
y ushort
z ushort
return Axiom.MathLib.AxisAlignedBox
		protected AxisAlignedBox GetRegionBounds( ushort x, ushort y, ushort z )
		{
			Vector3 min = new Vector3(
				( (float)x - regionHalfRange ) * regionDimensions.x + origin.x,
				( (float)y - regionHalfRange ) * regionDimensions.y + origin.y,
				( (float)z - regionHalfRange ) * regionDimensions.z + origin.z );
			Vector3 max = min + regionDimensions;
			return new AxisAlignedBox( min, max );
		}