Table of Contents

Struct BoundingBox

Namespace
NeoVeldrid.Utilities
Assembly
NeoVeldrid.Utilities.dll
public struct BoundingBox : IEquatable<BoundingBox>
Implements
Inherited Members

Constructors

BoundingBox(Vector3, Vector3)

public BoundingBox(Vector3 min, Vector3 max)

Parameters

min Vector3
max Vector3

Fields

Max

public Vector3 Max

Field Value

Vector3

Min

public Vector3 Min

Field Value

Vector3

Methods

Combine(BoundingBox, BoundingBox)

public static BoundingBox Combine(BoundingBox box1, BoundingBox box2)

Parameters

box1 BoundingBox
box2 BoundingBox

Returns

BoundingBox

Contains(ref BoundingBox)

public ContainmentType Contains(ref BoundingBox other)

Parameters

other BoundingBox

Returns

ContainmentType

ContainsNaN()

public bool ContainsNaN()

Returns

bool

CreateFromPoints(Vector3*, int, int, Quaternion, Vector3, Vector3)

public static BoundingBox CreateFromPoints(Vector3* vertexPtr, int numVertices, int vertexStride, Quaternion rotation, Vector3 offset, Vector3 scale)

Parameters

vertexPtr Vector3*
numVertices int
vertexStride int
rotation Quaternion
offset Vector3
scale Vector3

Returns

BoundingBox

CreateFromVertices(Vector3*, int, Quaternion, Vector3, Vector3)

public static BoundingBox CreateFromVertices(Vector3* vertices, int numVertices, Quaternion rotation, Vector3 offset, Vector3 scale)

Parameters

vertices Vector3*
numVertices int
rotation Quaternion
offset Vector3
scale Vector3

Returns

BoundingBox

CreateFromVertices(Vector3[])

public static BoundingBox CreateFromVertices(Vector3[] vertices)

Parameters

vertices Vector3[]

Returns

BoundingBox

CreateFromVertices(Vector3[], Quaternion, Vector3, Vector3)

public static BoundingBox CreateFromVertices(Vector3[] vertices, Quaternion rotation, Vector3 offset, Vector3 scale)

Parameters

vertices Vector3[]
rotation Quaternion
offset Vector3
scale Vector3

Returns

BoundingBox

Equals(BoundingBox)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(BoundingBox other)

Parameters

other BoundingBox

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetCenter()

public Vector3 GetCenter()

Returns

Vector3

GetCorners()

public AlignedBoxCorners GetCorners()

Returns

AlignedBoxCorners

GetDimensions()

public Vector3 GetDimensions()

Returns

Vector3

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.

Transform(BoundingBox, Matrix4x4)

public static BoundingBox Transform(BoundingBox box, Matrix4x4 mat)

Parameters

box BoundingBox
mat Matrix4x4

Returns

BoundingBox

Operators

operator ==(BoundingBox, BoundingBox)

public static bool operator ==(BoundingBox first, BoundingBox second)

Parameters

first BoundingBox
second BoundingBox

Returns

bool

operator !=(BoundingBox, BoundingBox)

public static bool operator !=(BoundingBox first, BoundingBox second)

Parameters

first BoundingBox
second BoundingBox

Returns

bool