Show / Hide Table of Contents

Struct RectInt

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

Constructors

| Improve this Doc View Source

RectInt(Int32, Int32, Int32, Int32)

Declaration
public RectInt(int xMin, int yMin, int width, int height)
Parameters
Type Name Description
Int32 xMin
Int32 yMin
Int32 width
Int32 height
| Improve this Doc View Source

RectInt(Vector2Int, Vector2Int)

Declaration
public RectInt(Vector2Int position, Vector2Int size)
Parameters
Type Name Description
Vector2Int position
Vector2Int size

Properties

| Improve this Doc View Source

allPositionsWithin

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

center

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

height

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

max

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

min

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

position

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

size

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

width

Declaration
public int width { get; set; }
Property Value
Type Description
Int32
| 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

Methods

| Improve this Doc View Source

ClampToBounds(RectInt)

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

Contains(Vector2Int)

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

Equals(RectInt)

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

SetMinMax(Vector2Int, Vector2Int)

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

ToString()

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

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