Show / Hide Table of Contents

Struct Bounds

Implements
IEquatable<Bounds>
Inherited Members
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Namespace: UnityEngine
Assembly: UnityEngine.dll
Syntax
public struct Bounds : IEquatable<Bounds>

Constructors

| Improve this Doc View Source

Bounds(Vector3, Vector3)

Declaration
public Bounds(Vector3 center, Vector3 size)
Parameters
Type Name Description
Vector3 center
Vector3 size

Properties

| Improve this Doc View Source

center

Declaration
public Vector3 center { get; set; }
Property Value
Type Description
Vector3
| Improve this Doc View Source

extents

Declaration
public Vector3 extents { get; set; }
Property Value
Type Description
Vector3
| Improve this Doc View Source

max

Declaration
public Vector3 max { get; set; }
Property Value
Type Description
Vector3
| Improve this Doc View Source

min

Declaration
public Vector3 min { get; set; }
Property Value
Type Description
Vector3
| Improve this Doc View Source

size

Declaration
public Vector3 size { get; set; }
Property Value
Type Description
Vector3

Methods

ClosestPoint(Vector3)

Declaration
public Vector3 ClosestPoint(Vector3 point)
Parameters
Type Name Description
Vector3 point
Returns
Type Description
Vector3

Contains(Vector3)

Declaration
public bool Contains(Vector3 point)
Parameters
Type Name Description
Vector3 point
Returns
Type Description
Boolean
| Improve this Doc View Source

Encapsulate(Bounds)

Declaration
public void Encapsulate(Bounds bounds)
Parameters
Type Name Description
Bounds bounds
| Improve this Doc View Source

Encapsulate(Vector3)

Declaration
public void Encapsulate(Vector3 point)
Parameters
Type Name Description
Vector3 point
| Improve this Doc View Source

Equals(Object)

Declaration
public override bool Equals(object other)
Parameters
Type Name Description
Object other
Returns
Type Description
Boolean
Overrides
ValueType.Equals(Object)
| Improve this Doc View Source

Equals(Bounds)

Declaration
public bool Equals(Bounds other)
Parameters
Type Name Description
Bounds other
Returns
Type Description
Boolean
| Improve this Doc View Source

Expand(Single)

Declaration
public void Expand(float amount)
Parameters
Type Name Description
Single amount
| Improve this Doc View Source

Expand(Vector3)

Declaration
public void Expand(Vector3 amount)
Parameters
Type Name Description
Vector3 amount
| Improve this Doc View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32
Overrides
ValueType.GetHashCode()
| Improve this Doc View Source

IntersectRay(Ray)

Declaration
public bool IntersectRay(Ray ray)
Parameters
Type Name Description
Ray ray
Returns
Type Description
Boolean
| Improve this Doc View Source

IntersectRay(Ray, out Single)

Declaration
public bool IntersectRay(Ray ray, out float distance)
Parameters
Type Name Description
Ray ray
Single distance
Returns
Type Description
Boolean
| Improve this Doc View Source

Intersects(Bounds)

Declaration
public bool Intersects(Bounds bounds)
Parameters
Type Name Description
Bounds bounds
Returns
Type Description
Boolean
| Improve this Doc View Source

SetMinMax(Vector3, Vector3)

Declaration
public void SetMinMax(Vector3 min, Vector3 max)
Parameters
Type Name Description
Vector3 min
Vector3 max

SqrDistance(Vector3)

Declaration
public float SqrDistance(Vector3 point)
Parameters
Type Name Description
Vector3 point
Returns
Type Description
Single
| Improve this Doc View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
String
Overrides
ValueType.ToString()
| Improve this Doc View Source

ToString(String)

Declaration
public string ToString(string format)
Parameters
Type Name Description
String format
Returns
Type Description
String

Operators

| Improve this Doc View Source

Equality(Bounds, Bounds)

Declaration
public static bool operator ==(Bounds lhs, Bounds rhs)
Parameters
Type Name Description
Bounds lhs
Bounds rhs
Returns
Type Description
Boolean
| Improve this Doc View Source

Inequality(Bounds, Bounds)

Declaration
public static bool operator !=(Bounds lhs, Bounds rhs)
Parameters
Type Name Description
Bounds lhs
Bounds rhs
Returns
Type Description
Boolean

Implements

System.IEquatable<T>

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX