Table of Contents

Method FromCenter

Namespace
Box3D
Assembly
Box3D.NET.dll

FromCenter(Vector3, Vector3)

Creates a box centred on a point.

public static BoundingBox FromCenter(Vector3 center, Vector3 halfExtents)

Parameters

center Vector3

The centre.

halfExtents Vector3

The half-widths along each axis.

Returns

BoundingBox

The box.