Show / Hide Table of Contents

Class JitteredSquareGrid

Inheritance
object
NestedModifier
PlanarLazyGrid
PlanarLazyMeshGrid
JitteredSquareGrid
Implements
IGrid
Inherited Members
PlanarLazyMeshGrid.Setup(Func<Cell, MeshData>, HexGrid, float, bool, MeshGridOptions, SquareBound, IEnumerable<ICellType>, ICachePolicy)
PlanarLazyMeshGrid.Setup(Func<Cell, MeshData>, SquareGrid, float, bool, MeshGridOptions, SquareBound, IEnumerable<ICellType>, ICachePolicy)
PlanarLazyMeshGrid.Setup(Func<Vector2Int, MeshData>, Vector2, Vector2, Vector2, Vector2, bool, MeshGridOptions, SquareBound, IEnumerable<ICellType>, ICachePolicy)
PlanarLazyMeshGrid.GetChildGrid(Cell)
PlanarLazyMeshGrid.TryMove(Cell, CellDir, out Cell, out CellDir, out Connection)
PlanarLazyGrid.Setup(Vector2, Vector2, Vector2, Vector2, bool, SquareBound, IEnumerable<ICellType>, ICachePolicy)
PlanarLazyGrid.GetAdjacentChunks(Cell)
PlanarLazyGrid.ChunkOffset(Cell)
PlanarLazyGrid.MeshTranslation(Cell)
PlanarLazyGrid.GetDual()
PlanarLazyGrid.GetDiagonalGrid()
PlanarLazyGrid.StrideX
PlanarLazyGrid.StrideY
PlanarLazyGrid.AabbBottomLeft
PlanarLazyGrid.AabbSize
NestedModifier.Setup(IGrid, IEnumerable<ICellType>, ICachePolicy)
NestedModifier.GetChildGridCached(Cell)
NestedModifier.GetCellTypes()
NestedModifier.GetCompactGrid()
NestedModifier.Recenter(Cell)
NestedModifier.GetCells()
NestedModifier.GetCellType(Cell)
NestedModifier.IsCellInGrid(Cell)
NestedModifier.TryMoveByOffset(Cell, Vector3Int, Vector3Int, CellRotation, out Cell, out CellRotation)
NestedModifier.ParallelTransport(IGrid, Cell, Cell, Cell, CellRotation, out Cell, out CellRotation)
NestedModifier.GetCellDirs(Cell)
NestedModifier.GetCellCorners(Cell)
NestedModifier.FindBasicPath(Cell, Cell)
NestedModifier.GetIndex(Cell)
NestedModifier.GetCellByIndex(int)
NestedModifier.GetBound()
NestedModifier.GetBound(IEnumerable<Cell>)
NestedModifier.IntersectBounds(IBound, IBound)
NestedModifier.UnionBounds(IBound, IBound)
NestedModifier.GetCellsInBounds(IBound)
NestedModifier.IsCellInBound(Cell, IBound)
NestedModifier.GetBoundAabb(IBound)
NestedModifier.GetCellCenter(Cell)
NestedModifier.GetCellCorner(Cell, CellCorner)
NestedModifier.GetTRS(Cell)
NestedModifier.GetDeformation(Cell)
NestedModifier.GetPolygon(Cell, out Vector3[], out Matrix4x4)
NestedModifier.GetTriangleMesh(Cell)
NestedModifier.GetMeshData(Cell, out MeshData, out Matrix4x4)
NestedModifier.GetAabb(Cell)
NestedModifier.GetAabb(IEnumerable<Cell>)
NestedModifier.FindCell(Vector3, out Cell)
NestedModifier.FindCell(Matrix4x4, out Cell, out CellRotation)
NestedModifier.GetCellsIntersectsApprox(Vector3, Vector3)
NestedModifier.Raycast(Vector3, Vector3, float)
NestedModifier.FindGridSymmetry(ISet<Cell>, ISet<Cell>, Cell, CellRotation)
NestedModifier.TryApplySymmetry(GridSymmetry, IBound, out IBound)
NestedModifier.TryApplySymmetry(GridSymmetry, Cell, out Cell, out CellRotation)
NestedModifier.ChunkGrid
NestedModifier.CachePolicy
NestedModifier.Is2d
NestedModifier.Is3d
NestedModifier.IsPlanar
NestedModifier.IsRepeating
NestedModifier.IsOrientable
NestedModifier.IsFinite
NestedModifier.IsSingleCellType
NestedModifier.Unwrapped
NestedModifier.IndexCount
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 JitteredSquareGrid : PlanarLazyMeshGrid, IGrid

Constructors

JitteredSquareGrid(JitteredSquareGrid, SquareBound)

Declaration
protected JitteredSquareGrid(JitteredSquareGrid other, SquareBound bound)
Parameters
Type Name Description
JitteredSquareGrid other
SquareBound bound

JitteredSquareGrid(int, int?, ICachePolicy)

Declaration
public JitteredSquareGrid(int chunkSize = 10, int? seed = null, ICachePolicy cachePolicy = null)
Parameters
Type Name Description
int chunkSize
int? seed
ICachePolicy cachePolicy

Properties

CoordinateDimension

Returns the number of co-ordinates needed to identify a cell. i.e. dim 1 means cell.y === 0 and cell.z === 0 dim 2 means cell.z === 0 dim 3 means all three co-ordinates are relevant.

Declaration
public override int CoordinateDimension { get; }
Property Value
Type Description
int
Overrides
NestedModifier.CoordinateDimension

Unbounded

Returns the grid with any bounds removed.

Declaration
public override IGrid Unbounded { get; }
Property Value
Type Description
IGrid
Overrides
PlanarLazyMeshGrid.Unbounded

Methods

BoundBy(IBound)

Returns a new grid restricted to just the given bound. If the grid already has a bound, the new grid will have the intersection of both.

Declaration
public override IGrid BoundBy(IBound bound)
Parameters
Type Name Description
IBound bound
Returns
Type Description
IGrid
Overrides
PlanarLazyMeshGrid.BoundBy(IBound)

Combine(Cell, Cell)

Declaration
protected override Cell Combine(Cell childCell, Cell chunkCell)
Parameters
Type Name Description
Cell childCell
Cell chunkCell
Returns
Type Description
Cell
Overrides
NestedModifier.Combine(Cell, Cell)

GetPointInCell(Cell)

Declaration
protected virtual Vector2 GetPointInCell(Cell cell)
Parameters
Type Name Description
Cell cell
Returns
Type Description
Vector2

Split(Cell)

Declaration
protected override (Cell childCell, Cell chunkCell) Split(Cell cell)
Parameters
Type Name Description
Cell cell
Returns
Type Description
(Cell childCell, Cell chunkCell)
Overrides
NestedModifier.Split(Cell)

Implements

IGrid

Extension Methods

GridExtensions.FindCell(IGrid, Vector3)
GridExtensions.GetCellsIntersectsApprox(IGrid, Aabb)
GridExtensions.GetMeshData(IGrid, Cell)
GridExtensions.GetNeighbours(IGrid, Cell)
GridExtensions.GetPolygon(IGrid, Cell)
GridExtensions.Masked(IGrid, ISet<Cell>)
GridExtensions.Masked(IGrid, Func<Cell, bool>, IEnumerable<Cell>)
GridExtensions.Move(IGrid, Cell, CellDir)
GridExtensions.ToMeshData(IGrid)
GridExtensions.ToMeshData(IGrid, IEnumerable<Cell>)
GridExtensions.Transformed(IGrid, Matrix4x4)
In this article
Back to top Generated by DocFX