Struct IntRect
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
ArrayPointdimensions
ArrayPoint
Fields
dimensions
public readonly ArrayPoint dimensions
Field Value
offset
public readonly ArrayPoint offset
Field Value
Properties
RightEnd
Gives the point just outside the rectangle.
public ArrayPoint RightEnd { get; }
Property Value
Methods
Difference(IntRect)
public IntRect Difference(IntRect otherRect)
Parameters
otherRect
IntRect
Returns
IncDimensions(ArrayPoint)
public IntRect IncDimensions(ArrayPoint increase)
Parameters
increase
ArrayPoint
Returns
Intersection(IntRect)
public IntRect Intersection(IntRect otherRect)
Parameters
otherRect
IntRect
Returns
Subtract(ArrayPoint)
public IntRect Subtract(ArrayPoint point)
Parameters
point
ArrayPoint
Returns
Translate(ArrayPoint)
public IntRect Translate(ArrayPoint point)
Parameters
point
ArrayPoint
Returns
Union(IntRect)
public IntRect Union(IntRect otherRect)
Parameters
otherRect
IntRect