Modifier and Type | Field and Description |
---|---|
int |
packedLength
The number of elements used to pack the object into an array.
|
attributes, boundingSphere, indices, primitiveType
Constructor and Description |
---|
PolygonGeometry(PolygonGeometryOptions options) |
Modifier and Type | Method and Description |
---|---|
static Geometry |
createGeometry(PolygonGeometry polygonGeometry)
Computes the geometric representation of a polygon, including its vertices, indices, and a bounding sphere.
|
static PolygonGeometry |
fromPositions(PolygonGeometryOptions options)
A description of a polygon from an array of positions.
|
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 int packedLength
@JsConstructor public PolygonGeometry(PolygonGeometryOptions options)
@JsMethod public static Geometry createGeometry(PolygonGeometry polygonGeometry)
polygonGeometry
- A description of the polygon.@JsMethod public static PolygonGeometry fromPositions(PolygonGeometryOptions options)
options
- PolygonGeometryOptions
@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.