Table of Contents

Struct IntRect

Namespace
Gamelogic.Grids
Assembly
Assembly-CSharp.dll

A rectangle where coordinates are non-negative integers (that is, the corners are ArrayPoints).

This class is useful for implementing storage operations for shapes.

[Version(1, 0, 0)]
public struct IntRect
Inherited Members
Extension Methods

Constructors

IntRect(ArrayPoint, ArrayPoint)

public IntRect(ArrayPoint offset, ArrayPoint dimensions)

Parameters

offset ArrayPoint
dimensions ArrayPoint

Fields

dimensions

public readonly ArrayPoint dimensions

Field Value

ArrayPoint

offset

public readonly ArrayPoint offset

Field Value

ArrayPoint

Properties

RightEnd

Gives the point just outside the rectangle.

public ArrayPoint RightEnd { get; }

Property Value

ArrayPoint

Methods

Difference(IntRect)

public IntRect Difference(IntRect otherRect)

Parameters

otherRect IntRect

Returns

IntRect

IncDimensions(ArrayPoint)

public IntRect IncDimensions(ArrayPoint increase)

Parameters

increase ArrayPoint

Returns

IntRect

Intersection(IntRect)

public IntRect Intersection(IntRect otherRect)

Parameters

otherRect IntRect

Returns

IntRect

Subtract(ArrayPoint)

public IntRect Subtract(ArrayPoint point)

Parameters

point ArrayPoint

Returns

IntRect

Translate(ArrayPoint)

public IntRect Translate(ArrayPoint point)

Parameters

point ArrayPoint

Returns

IntRect

Union(IntRect)

public IntRect Union(IntRect otherRect)

Parameters

otherRect IntRect

Returns

IntRect