Show / Hide Table of Contents

Class CubeBound

A bounding box on a regular 2d grid of squares.

Inheritance
object
CubeBound
Implements
IBound
IEnumerable<Cell>
IEnumerable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Sylves
Assembly: Sylves.dll
Syntax
public class CubeBound : IBound, IEnumerable<Cell>, IEnumerable

Constructors

CubeBound(Vector3Int, Vector3Int)

Declaration
public CubeBound(Vector3Int min, Vector3Int mex)
Parameters
Type Name Description
Vector3Int min
Vector3Int mex

Properties

Max

Inclusive upper bound for each coordinate

Declaration
public Vector3Int Max { get; set; }
Property Value
Type Description
Vector3Int

Mex

Exclusive upper bound for each coordinate

Declaration
public Vector3Int Mex { get; set; }
Property Value
Type Description
Vector3Int

Min

Inclusive lower bound for each coordinate

Declaration
public Vector3Int Min { get; set; }
Property Value
Type Description
Vector3Int

Size

Declaration
public Vector3Int Size { get; }
Property Value
Type Description
Vector3Int

Methods

Contains(Cell)

Declaration
public bool Contains(Cell v)
Parameters
Type Name Description
Cell v
Returns
Type Description
bool

FromVectors(IEnumerable<Vector3Int>)

Declaration
public static CubeBound FromVectors(IEnumerable<Vector3Int> vs)
Parameters
Type Name Description
IEnumerable<Vector3Int> vs
Returns
Type Description
CubeBound

GetEnumerator()

Declaration
public IEnumerator<Cell> GetEnumerator()
Returns
Type Description
IEnumerator<Cell>

Intersect(CubeBound)

Declaration
public CubeBound Intersect(CubeBound other)
Parameters
Type Name Description
CubeBound other
Returns
Type Description
CubeBound

Union(CubeBound)

Declaration
public CubeBound Union(CubeBound other)
Parameters
Type Name Description
CubeBound other
Returns
Type Description
CubeBound

Implements

IBound
IEnumerable<T>
IEnumerable
In this article
Back to top Generated by DocFX