Axiom.Math.AxisAlignedBox.FromDimensions C# (CSharp) Method

FromDimensions() public static method

Return new bounding box from the supplied dimensions.
public static FromDimensions ( Vector3 center, Vector3 size ) : AxisAlignedBox
center Vector3 Center of the new box
size Vector3 Entire size of the new box
return AxisAlignedBox
		public static AxisAlignedBox FromDimensions( Vector3 center, Vector3 size )
		{
			Vector3 halfSize = .5f * size;

			return new AxisAlignedBox( center - halfSize, center + halfSize );
		}