Show / Hide Table of Contents

Class CubeBound

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

Inheritance
System.Object
CubeBound
Implements
IBound
System.Collections.Generic.IEnumerable<Cell>
System.Collections.IEnumerable
Namespace: Sylves
Assembly: Sylves.dll
Syntax
public class CubeBound : Object, IBound

Constructors

CubeBound(Vector3Int, Vector3Int)

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

Fields

max

Exclusive upper bound for each coordinate

Declaration
public Vector3Int max
Field Value
Type Description
Vector3Int

min

Inclusive lower bound for each coordinate

Declaration
public Vector3Int min
Field Value
Type Description
Vector3Int

Properties

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
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
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
System.Collections.Generic.IEnumerable<>
System.Collections.IEnumerable
In This Article
Back to top Generated by DocFX