Table of Contents

Constructor Box

Namespace
Box3D
Assembly
Box3D.NET.dll

Box(Vector3, Vector3)

Initializes a new instance of the Box3D.Box struct.

public Box(Vector3 halfExtents, Vector3 center = default)

Parameters

halfExtents Vector3

The half-widths along each axis. Every component must be positive.

center Vector3

The centre, relative to the body origin.

Exceptions

ArgumentOutOfRangeException

A component of halfExtents is not positive.