Show / Hide Table of Contents

Struct BoundsInt

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

Constructors

| Improve this Doc View Source

BoundsInt(Int32, Int32, Int32, Int32, Int32, Int32)

Declaration
public BoundsInt(int xMin, int yMin, int zMin, int sizeX, int sizeY, int sizeZ)
Parameters
Type Name Description
Int32 xMin
Int32 yMin
Int32 zMin
Int32 sizeX
Int32 sizeY
Int32 sizeZ
| Improve this Doc View Source

BoundsInt(Vector3Int, Vector3Int)

Declaration
public BoundsInt(Vector3Int position, Vector3Int size)
Parameters
Type Name Description
Vector3Int position
Vector3Int size

Properties

| Improve this Doc View Source

allPositionsWithin

Declaration
public BoundsInt.PositionEnumerator allPositionsWithin { get; }
Property Value
Type Description
BoundsInt.PositionEnumerator
| Improve this Doc View Source

center

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

max

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

min

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

position

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

size

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

x

Declaration
public int x { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

xMax

Declaration
public int xMax { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

xMin

Declaration
public int xMin { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

y

Declaration
public int y { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

yMax

Declaration
public int yMax { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

yMin

Declaration
public int yMin { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

z

Declaration
public int z { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

zMax

Declaration
public int zMax { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

zMin

Declaration
public int zMin { get; set; }
Property Value
Type Description
Int32

Methods

| Improve this Doc View Source

ClampToBounds(BoundsInt)

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

Contains(Vector3Int)

Declaration
public bool Contains(Vector3Int position)
Parameters
Type Name Description
Vector3Int position
Returns
Type Description
Boolean
| 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(BoundsInt)

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

GetHashCode()

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

SetMinMax(Vector3Int, Vector3Int)

Declaration
public void SetMinMax(Vector3Int minPosition, Vector3Int maxPosition)
Parameters
Type Name Description
Vector3Int minPosition
Vector3Int maxPosition
| Improve this Doc View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
String
Overrides
ValueType.ToString()

Operators

| Improve this Doc View Source

Equality(BoundsInt, BoundsInt)

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

Inequality(BoundsInt, BoundsInt)

Declaration
public static bool operator !=(BoundsInt lhs, BoundsInt rhs)
Parameters
Type Name Description
BoundsInt lhs
BoundsInt 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