@JsType(isNative=true, namespace="Cesium", name="GroundPolylineGeometry") public class GroundPolylineGeometry extends Geometry implements Packable
GroundPolylinePrimitive
.Modifier and Type | Field and Description |
---|---|
double |
granularity
The distance interval used for interpolating options.points.
|
boolean |
loop
Whether during geometry creation a line segment will be added between the last and first line positions to make this Polyline a loop.
|
double |
width
The screen space width in pixels.
|
attributes, boundingSphere, indices, primitiveType
Constructor and Description |
---|
GroundPolylineGeometry(GroundPolylineGeometryOptions options)
A description of a polyline on terrain.
|
Modifier and Type | Method and Description |
---|---|
static GroundPolylineGeometry |
create(Cartesian3[] positions)
A description of a polyline on terrain.
|
static double[] |
pack(PolygonGeometry value,
double[] array)
Stores the provided instance into the provided array.
|
static double[] |
pack(PolygonGeometry value,
double[] array,
int startingIndex)
Stores the provided instance into the provided array.
|
static PolygonGeometry |
unpack(double[] array)
Retrieves an instance from a packed array.
|
static PolygonGeometry |
unpack(double[] array,
int startingIndex)
Retrieves an instance from a packed array.
|
static PolygonGeometry |
unpack(double[] array,
int startingIndex,
PolygonGeometry result)
Retrieves an instance from a packed array.
|
computeNumberOfVertices
@JsProperty public double granularity
@JsProperty public boolean loop
@JsProperty public double width
@JsConstructor public GroundPolylineGeometry(GroundPolylineGeometryOptions options)
GroundPolylinePrimitive
.options
- GroundPolylineGeometryOptions
object.
Example:
Cartesian3[] positions = Cartesian3.fromDegreesArray(new double[]{-112.1340164450331, 36.05494287836128,
-112.08821010582645, 36.097804071380715,
-112.13296079730024, 36.168769146801104});
GroundPolylineGeometry geometry = GroundPolylineGeometry.create(positions);
@JsOverlay public static GroundPolylineGeometry create(Cartesian3[] positions)
GroundPolylinePrimitive
.positions
- An array of Cartesian3 defining the polyline's points. Heights above the ellipsoid will be ignored.GroundPolylineGeometry
instance.
Example:
Cartesian3[] positions = Cartesian3.fromDegreesArray(new double[]{-112.1340164450331, 36.05494287836128,
-112.08821010582645, 36.097804071380715,
-112.13296079730024, 36.168769146801104});
GroundPolylineGeometry geometry = GroundPolylineGeometry.create(positions);
@JsMethod public static double[] pack(PolygonGeometry value, double[] array)
value
- The value to pack.array
- The array to pack into.@JsMethod public static double[] pack(PolygonGeometry value, double[] array, int startingIndex)
value
- The value to pack.array
- The array to pack into.startingIndex
- The index into the array at which to start packing the elements.@JsMethod public static PolygonGeometry unpack(double[] array)
array
- The packed array.@JsMethod public static PolygonGeometry unpack(double[] array, int startingIndex)
array
- The packed array.startingIndex
- The starting index of the element to be unpacked.@JsMethod public static PolygonGeometry unpack(double[] array, int startingIndex, PolygonGeometry result)
array
- The packed array.startingIndex
- The starting index of the element to be unpacked.result
- The object into which to store the result.Copyright © 2019. All rights reserved.