Package org.recast4j.recast
Class Heightfield
java.lang.Object
org.recast4j.recast.Heightfield
Represents a heightfield layer within a layer set.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal float[]The maximum bounds in world space.final float[]The minimum bounds in world space.final intBorder size in cell unitsfinal floatThe height of each cell.final floatThe size of each cell.final intThe height of the heightfield.final Span[]Heightfield of spans (width*height).final intThe width of the heightfield. -
Constructor Summary
ConstructorsConstructorDescriptionHeightfield(int width, int height, float[] bmin, float[] bmax, float cs, float ch, int borderSize) -
Method Summary
-
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)
-