Class Heightfield

java.lang.Object
org.recast4j.recast.Heightfield

public class Heightfield
extends java.lang.Object
Represents a heightfield layer within a layer set.
  • Field Summary

    Fields
    Modifier and Type Field Description
    float[] bmax
    The maximum bounds in world space.
    float[] bmin
    The minimum bounds in world space.
    int borderSize
    Border size in cell units
    float ch
    The height of each cell.
    float cs
    The size of each cell.
    int height
    The height of the heightfield.
    Span[] spans
    Heightfield of spans (width*height).
    int width
    The width of the heightfield.
  • Constructor Summary

    Constructors
    Constructor Description
    Heightfield​(int width, int height, float[] bmin, float[] bmax, float cs, float ch, int borderSize)  
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • width

      public final int width
      The width of the heightfield. (Along the x-axis in cell units.)
    • height

      public final int height
      The height of the heightfield. (Along the z-axis in cell units.)
    • bmin

      public final float[] bmin
      The minimum bounds in world space. [(x, y, z)]
    • bmax

      public final float[] bmax
      The maximum bounds in world space. [(x, y, z)]
    • cs

      public final float cs
      The size of each cell. (On the xz-plane.)
    • ch

      public final float ch
      The height of each cell. (The minimum increment along the y-axis.)
    • spans

      public final Span[] spans
      Heightfield of spans (width*height).
    • borderSize

      public final int borderSize
      Border size in cell units
  • Constructor Details

    • Heightfield

      public Heightfield​(int width, int height, float[] bmin, float[] bmax, float cs, float ch, int borderSize)