SolidHeightField class final
Ground as a grid of heights — a terrain: sampleCount by sampleCount samples cellSize apart, row by row along Z, each along X, its first at (x, y, z). Each height is how far up the ground is there (+Y is down: it is subtracted). holeHeight or more marks a hole: nothing there.
Constructors
- SolidHeightField(Float32List heights, int sampleCount, double cellSize, {double x = 0, double y = 0, double z = 0})
-
const
Properties
- cellSize → double
-
Metres between samples.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- heights → Float32List
-
Row-major heights, sampleCount squared of them.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sampleCount → int
-
Samples along each side.
final
- x → double
-
Where its first sample is, in its entity's space.
final
- y → double
-
Where its first sample is, in its entity's space.
final
- z → double
-
Where its first sample is, in its entity's space.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- holeHeight → const double
- A height that marks a hole.