Table of Contents

Struct BoundingBox

Namespace
Obsidian.API
Assembly
Obsidian.API.dll
public readonly struct BoundingBox : IEquatable<BoundingBox>
Implements
Inherited Members

Constructors

BoundingBox(VectorF, VectorF)

public BoundingBox(VectorF min, VectorF max)

Parameters

min VectorF
max VectorF

Fields

CornerCount

public const int CornerCount = 8

Field Value

int

Max

public readonly VectorF Max

Field Value

VectorF

Min

public readonly VectorF Min

Field Value

VectorF

Properties

Depth

public double Depth { get; }

Property Value

double

Height

public double Height { get; }

Property Value

double

Width

public double Width { get; }

Property Value

double

Methods

Contains(BoundingBox)

public ContainmentType Contains(BoundingBox box)

Parameters

box BoundingBox

Returns

ContainmentType

Contains(VectorF)

public bool Contains(VectorF vec)

Parameters

vec VectorF

Returns

bool

CreateFromPoints(IEnumerable<VectorF>)

public static BoundingBox CreateFromPoints(IEnumerable<VectorF> points)

Parameters

points IEnumerable<VectorF>

Returns

BoundingBox

Equals(BoundingBox)

public bool Equals(BoundingBox other)

Parameters

other BoundingBox

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetCorners()

public VectorF[] GetCorners()

Returns

VectorF[]

GetHashCode()

public override int GetHashCode()

Returns

int

Intersects(BoundingBox)

public bool Intersects(BoundingBox box)

Parameters

box BoundingBox

Returns

bool

Intersects(ref BoundingBox, out bool)

public void Intersects(ref BoundingBox box, out bool result)

Parameters

box BoundingBox
result bool

OffsetBy(VectorF)

public BoundingBox OffsetBy(VectorF offset)

Parameters

offset VectorF

Returns

BoundingBox

ToString()

public override string ToString()

Returns

string

Operators

operator +(BoundingBox, float)

public static BoundingBox operator +(BoundingBox a, float b)

Parameters

a BoundingBox
b float

Returns

BoundingBox

operator ==(BoundingBox, BoundingBox)

public static bool operator ==(BoundingBox a, BoundingBox b)

Parameters

a BoundingBox
b BoundingBox

Returns

bool

operator !=(BoundingBox, BoundingBox)

public static bool operator !=(BoundingBox a, BoundingBox b)

Parameters

a BoundingBox
b BoundingBox

Returns

bool