Table of Contents

Class Bounds

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

Represents an axis-aligned bounding box for mesh vertices.

public class Bounds
Inheritance
Bounds
Inherited Members

Constructors

Bounds(Vector3, Vector3)

Initializes a new instance of the Bounds class using the specified bounding-box center and dimensions.

public Bounds(Vector3 center, Vector3 extents)

Parameters

center Vector3

The center of the axis-aligned bounding box.

extents Vector3

The dimensions of the axis-aligned bounding box, measured from the center to the extremities.

Fields

Empty

Represents a Bounds instance with empty extents.

public static readonly Bounds Empty

Field Value

Bounds

Properties

Center

Gets the center of the axis-aligned bounding box.

public Vector3 Center { get; }

Property Value

Vector3

Extents

Gets the dimensions of the axis-aligned bounding box, measured from the center to the extremities.

public Vector3 Extents { get; }

Property Value

Vector3

Maximum

Gets the maximum point of the axis-aligned bounding box.

public Vector3 Maximum { get; }

Property Value

Vector3

Minimum

Gets the minimum point of the axis-aligned bounding box.

public Vector3 Minimum { get; }

Property Value

Vector3

Size

Gets the full size of the axis-aligned bounding box across all three dimensions.

public Vector3 Size { get; }

Property Value

Vector3

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.