Bounds

More information can be found in the Unity API Reference

Constructors

Constructor

Description

Bounds()

Bounds(center, size)

Members

Member

Description

center

extents

max

min

size

Methods

Method

Description

ClosestPoint(point)

Contains(point)

Encapsulate(point)

Encapsulate(bounds)

Expand(amount)

Expand(amount)

GetHashCode()

IntersectRay(ray)

IntersectRay(ray, distance)

Intersects(bounds)

SetMinMax(min, max)

SqrDistance(point)

ToString()

ToString(format)

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)