SimplePolylineGeometry

A description of a polyline modeled as a line strip; the first two positions define a line segment, and each additional position defines a line segment from the previous position.

// A polyline with two connected line segments
const polyline = new SimplePolylineGeometry({
positions : Cartesian3.fromDegreesArray([
0.0, 0.0,
5.0, 0.0,
5.0, 5.0
])
});
const geometry = SimplePolylineGeometry.createGeometry(polyline);

See also

Constructors

Link copied to clipboard

Types

Link copied to clipboard
object Companion
Link copied to clipboard
sealed interface ConstructorOptions

Properties

Link copied to clipboard

The number of elements used to pack the object into an array.