csharp
public readonly record struct TerrainRectA rectangle of samples, in sample indices.
Fields and properties (9)
public int XThe low X index.
public int ZThe low Z index.
public int WidthHow many samples along X.
public int HeightHow many samples along Z.
public static TerrainRect EmptyThe empty rectangle, which every operation on it does nothing to.
public bool IsEmptyWhether it covers no samples.
public int EndXOne past the last X index.
public int EndZOne past the last Z index.
public int CountHow many samples it covers.
Methods (5)
public TerrainRect(int X, int Z, int Width, int Height)A rectangle of samples, in sample indices.
public bool Contains(int x, int z)Whether a sample is inside.
public TerrainRect Clip(TerrainRect other)The part of this rectangle that is also inside another.
public TerrainRect Union(TerrainRect other)The smallest rectangle containing both.
public TerrainRect Grow(int margin)Grown by a margin on every side.
Used by (34)
- TerrainVixen.Terrain
- TerrainAtlasVixen.Terrain
- TerrainAtlasTestsVixen.Terrain.Tests
- TerrainDescriptionVixen.Terrain
- TerrainDescriptionTestsVixen.Terrain.Tests
- TerrainEditLayerVixen.Terrain
- TerrainLayerTestsVixen.Terrain.Tests
- TerrainLodNodeVixen.Terrain
- TerrainMipsVixen.Terrain
- TerrainPaintVixen.Terrain
- TerrainRectTestsVixen.Terrain.Tests
- TerrainRendererVixen.Rendering.Terrain
- TerrainResizeVixen.Terrain
- TerrainSamplesVixen.Terrain
- TerrainSculptVixen.Terrain
- TerrainSculptTestsVixen.Terrain.Tests
- TerrainSplatVixen.Rendering.Terrain
- TerrainSplatTestsVixen.Rendering.Terrain.Tests
- TerrainSplineVixen.Terrain
- TerrainSplineTestsVixen.Terrain.Tests
- TerrainStrokeVixen.Terrain
- TerrainStrokeRedoVixen.Terrain
- TerrainStrokeTestsVixen.Terrain.Tests
- TerrainWeightRedoVixen.Terrain
- TerrainWeightStrokeVixen.Terrain
- TypeRegistrationVixen.Terrain
- ITerrainCollidersVixen.Editor.Terrain
- TerrainEditVixen.Editor.Terrain
- TerrainEditTestsVixen.Editor.Terrain.Tests
- TerrainHoleCommandVixen.Editor.Terrain
- TerrainHoleStrokeVixen.Editor.Terrain
- TerrainPaintCommandVixen.Editor.Terrain
- TerrainPaintModeTestsVixen.Editor.Terrain.Tests
- TerrainStrokeCommandVixen.Editor.Terrain