Class CubeBound
A bounding box on a regular 2d grid of squares.
Assembly: Sylves.dll
Syntax
public class CubeBound : IBound, IEnumerable<Cell>, IEnumerable
Constructors
CubeBound(Vector3Int, Vector3Int)
Declaration
public CubeBound(Vector3Int min, Vector3Int mex)
Parameters
Properties
Max
Inclusive upper bound for each coordinate
Declaration
public Vector3Int Max { get; set; }
Property Value
Mex
Exclusive upper bound for each coordinate
Declaration
public Vector3Int Mex { get; set; }
Property Value
Min
Inclusive lower bound for each coordinate
Declaration
public Vector3Int Min { get; set; }
Property Value
Size
Declaration
public Vector3Int Size { get; }
Property Value
Methods
Contains(Cell)
Declaration
public bool Contains(Cell v)
Parameters
| Type |
Name |
Description |
| Cell |
v |
|
Returns
FromVectors(IEnumerable<Vector3Int>)
Declaration
public static CubeBound FromVectors(IEnumerable<Vector3Int> vs)
Parameters
Returns
GetEnumerator()
Declaration
public IEnumerator<Cell> GetEnumerator()
Returns
Intersect(CubeBound)
Declaration
public CubeBound Intersect(CubeBound other)
Parameters
Returns
Union(CubeBound)
Declaration
public CubeBound Union(CubeBound other)
Parameters
Returns
Implements