Show / Hide Table of Contents

Class JitteredSquareGrid

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

Declaration
public JitteredSquareGrid(int chunkSize = 10, Nullable<int> seed = null, ICachePolicy cachePolicy = null)
Parameters
Type Name Description
System.Int32 chunkSize
System.Nullable<System.Int32> seed
ICachePolicy cachePolicy

Properties

CoordinateDimension

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

Unbounded

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

Methods

BoundBy(IBound)

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, Cell) Split(Cell cell)
Parameters
Type Name Description
Cell cell
Returns
Type Description
System.ValueTuple<Cell, Cell>
Overrides
NestedModifier.Split(Cell)

Implements

IGrid
In This Article
Back to top Generated by DocFX