Class Heightfield

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

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

    Fields
    Modifier and Type
    Field
    Description
    final float[]
    The maximum bounds in world space.
    final float[]
    The minimum bounds in world space.
    final int
    Border size in cell units
    final float
    The height of each cell.
    final float
    The size of each cell.
    final int
    The height of the heightfield.
    final Span[]
    Heightfield of spans (width*height).
    final int
    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)