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
sizeVector3-
The full size along each axis. Every component must be positive.
centerVector3-
The centre, relative to the body origin.
Returns
- Box
-
The box.
Exceptions
- ArgumentOutOfRangeException
-
A component of
sizeis not positive.