Struct Bounds
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
Properties
|
Improve this Doc
View Source
center
Declaration
public Vector3 center { get; set; }
Property Value
|
Improve this Doc
View Source
extents
Declaration
public Vector3 extents { get; set; }
Property Value
|
Improve this Doc
View Source
max
Declaration
public Vector3 max { get; set; }
Property Value
|
Improve this Doc
View Source
min
Declaration
public Vector3 min { get; set; }
Property Value
|
Improve this Doc
View Source
size
Declaration
public Vector3 size { get; set; }
Property Value
Methods
ClosestPoint(Vector3)
Declaration
public Vector3 ClosestPoint(Vector3 point)
Parameters
Type |
Name |
Description |
Vector3 |
point |
|
Returns
Contains(Vector3)
Declaration
public bool Contains(Vector3 point)
Parameters
Type |
Name |
Description |
Vector3 |
point |
|
Returns
|
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
Overrides
|
Improve this Doc
View Source
Equals(Bounds)
Declaration
public bool Equals(Bounds other)
Parameters
Type |
Name |
Description |
Bounds |
other |
|
Returns
|
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
Overrides
|
Improve this Doc
View Source
IntersectRay(Ray)
Declaration
public bool IntersectRay(Ray ray)
Parameters
Type |
Name |
Description |
Ray |
ray |
|
Returns
|
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
|
Improve this Doc
View Source
Intersects(Bounds)
Declaration
public bool Intersects(Bounds bounds)
Parameters
Type |
Name |
Description |
Bounds |
bounds |
|
Returns
|
Improve this Doc
View Source
SetMinMax(Vector3, Vector3)
Declaration
public void SetMinMax(Vector3 min, Vector3 max)
Parameters
SqrDistance(Vector3)
Declaration
public float SqrDistance(Vector3 point)
Parameters
Type |
Name |
Description |
Vector3 |
point |
|
Returns
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
|
Improve this Doc
View Source
ToString(String)
Declaration
public string ToString(string format)
Parameters
Type |
Name |
Description |
String |
format |
|
Returns
Operators
|
Improve this Doc
View Source
Equality(Bounds, Bounds)
Declaration
public static bool operator ==(Bounds lhs, Bounds rhs)
Parameters
Returns
|
Improve this Doc
View Source
Inequality(Bounds, Bounds)
Declaration
public static bool operator !=(Bounds lhs, Bounds rhs)
Parameters
Returns
Implements
Extension Methods