Table of Contents

Method Cube

Namespace
Box3D
Assembly
Box3D.NET.dll

Cube(float)

Creates a cube.

public static Box Cube(float halfWidth)

Parameters

halfWidth float

Half the edge length. Must be positive.

Returns

Box

The cube.

Exceptions

ArgumentOutOfRangeException

halfWidth is not positive.