Package org.recast4j.recast
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[]bmaxThe maximum bounds in world space.float[]bminThe minimum bounds in world space.intborderSizeBorder size in cell unitsfloatchThe height of each cell.floatcsThe size of each cell.intheightThe height of the heightfield.Span[]spansHeightfield of spans (width*height).intwidthThe 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 widthThe width of the heightfield. (Along the x-axis in cell units.) -
height
public final int heightThe height of the heightfield. (Along the z-axis in cell units.) -
bmin
public final float[] bminThe minimum bounds in world space. [(x, y, z)] -
bmax
public final float[] bmaxThe maximum bounds in world space. [(x, y, z)] -
cs
public final float csThe size of each cell. (On the xz-plane.) -
ch
public final float chThe height of each cell. (The minimum increment along the y-axis.) -
spans
Heightfield of spans (width*height). -
borderSize
public final int borderSizeBorder size in cell units
-
-
Constructor Details
-
Heightfield
public Heightfield(int width, int height, float[] bmin, float[] bmax, float cs, float ch, int borderSize)
-