Bounds

More information can be found in the Unity API Reference and maybe in the Unity Manual.

Constructors

Constructor

Description

Bounds()

Bounds(center, size)

Members

Member

Description

center

extents

max

min

size

Operators

Operator

Description

operator !=(lhs, rhs)

operator ==(lhs, rhs)

Details

class Bounds
Bounds Bounds(Vector3 center, Vector3 size)
Bounds Bounds()
Vector3 center
Vector3 extents
Vector3 max
Vector3 min
Vector3 size
Vector3 ClosestPoint(Vector3 point)
bool Contains(Vector3 point)
void Encapsulate(Vector3 point)
void Encapsulate(Bounds bounds)
void Expand(float amount)
void Expand(Vector3 amount)
int GetHashCode()
bool IntersectRay(Ray ray)
bool IntersectRay(Ray ray, float distance)
bool Intersects(Bounds bounds)
void SetMinMax(Vector3 min, Vector3 max)
float SqrDistance(Vector3 point)
string ToString()
string ToString(string format)
static bool operator!=(Bounds lhs, Bounds rhs)
static bool operator==(Bounds lhs, Bounds rhs)