Class CubeBound
A bounding box on a regular 2d grid of squares.
Inheritance
System.Object
CubeBound
Implements
System.Collections.Generic.IEnumerable<
Cell>
System.Collections.IEnumerable
Assembly: Sylves.dll
Syntax
public class CubeBound : Object, IBound
Constructors
CubeBound(Vector3Int, Vector3Int)
Declaration
public CubeBound(Vector3Int min, Vector3Int max)
Parameters
Fields
max
Exclusive upper bound for each coordinate
Declaration
Field Value
min
Inclusive lower bound for each coordinate
Declaration
Field Value
Properties
size
Declaration
public Vector3Int size { get; }
Property Value
Methods
Contains(Cell)
Declaration
public bool Contains(Cell v)
Parameters
Type |
Name |
Description |
Cell |
v |
|
Returns
Type |
Description |
System.Boolean |
|
GetEnumerator()
Declaration
public IEnumerator<Cell> GetEnumerator()
Returns
Type |
Description |
System.Collections.Generic.IEnumerator<Cell> |
|
Intersect(CubeBound)
Declaration
public CubeBound Intersect(CubeBound other)
Parameters
Returns
Union(CubeBound)
Declaration
public CubeBound Union(CubeBound other)
Parameters
Returns
Implements
System.Collections.Generic.IEnumerable<>
System.Collections.IEnumerable