Table of Contents

Constructor Sphere

Namespace
Box3D
Assembly
Box3D.NET.dll

Sphere(Vector3, float)

Initializes a new instance of the Box3D.Sphere struct.

public Sphere(Vector3 center, float radius)

Parameters

center Vector3

The centre, relative to the body origin.

radius float

The radius. Must be positive.

Exceptions

ArgumentOutOfRangeException

radius is not positive.

Sphere(float)

Initializes a new instance centred on the body origin.

public Sphere(float radius)

Parameters

radius float

The radius. Must be positive.

Exceptions

ArgumentOutOfRangeException

radius is not positive.