2using System.Collections.Generic;
36 return m_Extents * 2f;
40 m_Extents = value * 0.5f;
97 m_Extents =
size * 0.5f;
105 public override bool Equals(
object other)
126 return !(lhs == rhs);
193 return String.Format(
"Center: {0}, Extents: {1}", m_Center, m_Extents);
202 return String.Format(
"Center: {0}, Extents: {1}", m_Center.
ToString(format), m_Extents.
ToString(format));
void Expand(float amount)
bool Equals(Bounds other)
void Expand(Vector3 amount)
bool Intersects(Bounds bounds)
static bool operator==(Bounds lhs, Bounds rhs)
override string ToString()
void SetMinMax(Vector3 min, Vector3 max)
static bool operator!=(Bounds lhs, Bounds rhs)
string ToString(string format)
override int GetHashCode()
void Encapsulate(Vector3 point)
override bool Equals(object other)
void Encapsulate(Bounds bounds)
Bounds(Vector3 center, Vector3 size)
override bool Equals(object other)
static Vector3 Min(Vector3 lhs, Vector3 rhs)
static Vector3 Max(Vector3 lhs, Vector3 rhs)
override int GetHashCode()
override string ToString()