Table of Contents

Method FromSize

Namespace
Box3D
Assembly
Box3D.NET.dll

FromSize(Vector3, Vector3)

Creates a box from its full size rather than its half-widths.

public static Box FromSize(Vector3 size, Vector3 center = default)

Parameters

size Vector3

The full size along each axis. Every component must be positive.

center Vector3

The centre, relative to the body origin.

Returns

Box

The box.

Exceptions

ArgumentOutOfRangeException

A component of size is not positive.