Table of Contents

Class CGBounds

Bounds data class

[CGDataInfo(1, 0.8, 0.5, 1)]
public class CGBounds : CGData
Inheritance
CGBounds
Derived
Inherited Members

Constructors

CGBounds()

public CGBounds()

CGBounds(CGBounds)

Copy constructor

public CGBounds(CGBounds source)

Parameters

source CGBounds

CGBounds(Bounds)

Initializes a new instance with the given bounds

public CGBounds(Bounds bounds)

Parameters

bounds Bounds

Fields

mBounds

protected Bounds? mBounds

Field Value

Bounds?

Properties

Bounds

Gets or sets the bounding volume

public Bounds Bounds { get; set; }

Property Value

Bounds

Depth

Gets the depth (Z extent) of the bounds

public float Depth { get; }

Property Value

float

Methods

Clone<T>()

Creates a copy of this data instance

public override T Clone<T>() where T : CGData

Returns

T

Type Parameters

T

Copy(CGBounds, CGBounds)

Copies bounds data from source to dest, if source has computed bounds

public static void Copy(CGBounds dest, CGBounds source)

Parameters

dest CGBounds
source CGBounds

RecalculateBounds()

Recalculates the bounds and updates the value of Bounds

public virtual void RecalculateBounds()