Struct CellRect
Namespace: AS2
Assembly: .dll
Syntax
Constructors
|
Edit this page
View Source
CellRect(int, int, int, int)
Declaration
public CellRect(int minX, int minY, int width, int height)
Parameters
Type |
Name |
Description |
int |
minX |
|
int |
minY |
|
int |
width |
|
int |
height |
|
Fields
|
Edit this page
View Source
maxX
Declaration
Field Value
|
Edit this page
View Source
maxY
Declaration
Field Value
|
Edit this page
View Source
minX
Declaration
Field Value
|
Edit this page
View Source
minY
Declaration
Field Value
Properties
|
Edit this page
View Source
Area
Declaration
Property Value
|
Edit this page
View Source
Height
Declaration
public int Height { get; }
Property Value
|
Edit this page
View Source
Width
Declaration
public int Width { get; }
Property Value
Methods
|
Edit this page
View Source
CellRect_Complement(CellRect)
Returns a list of rects that contain each field from the complement of "this \ otherRect" exactly once.
Declaration
public List<CellRect> CellRect_Complement(CellRect otherRect)
Parameters
Type |
Name |
Description |
CellRect |
otherRect |
|
Returns
|
Edit this page
View Source
CellRect_CutSet(CellRect)
Returns the cut set of the two rects (which is another simple rect). If there is no cut, an invalid rect with Width=0 and Height=0 is returned.
Can be used for an iterator that does not return values.
Declaration
public CellRect CellRect_CutSet(CellRect otherRect)
Parameters
Type |
Name |
Description |
CellRect |
otherRect |
|
Returns
|
Edit this page
View Source
Contains(int, int)
Returns if the given point is in the CellRect.
Declaration
public bool Contains(int x, int y)
Parameters
Type |
Name |
Description |
int |
x |
|
int |
y |
|
Returns
|
Edit this page
View Source
Equals(object)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
The object to compare with the current instance.
|
Returns
Type |
Description |
bool |
true if obj and this instance are the same type and represent the same value; otherwise, false.
|
Overrides
System.ValueType.Equals(object)
|
Edit this page
View Source
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
int |
A 32-bit signed integer that is the hash code for this instance.
|
Overrides
System.ValueType.GetHashCode()
|
Edit this page
View Source
GetIterator()
Declaration
public CellRect.CellRect_Iterator GetIterator()
Returns
|
Edit this page
View Source
IsValid()
Returns if the rect is valid.
Declaration
Returns
|
Edit this page
View Source
ToString()
Returns the fully qualified type name of this instance.
Declaration
public override string ToString()
Returns
Type |
Description |
string |
The fully qualified type name.
|
Overrides
System.ValueType.ToString()
Operators
|
Edit this page
View Source
operator ==(CellRect, CellRect)
Declaration
public static bool operator ==(CellRect left, CellRect right)
Parameters
Returns
|
Edit this page
View Source
operator !=(CellRect, CellRect)
Declaration
public static bool operator !=(CellRect lhs, CellRect rhs)
Parameters
Returns