| Modifier and Type | Field and Description |
|---|---|
static Integer |
packedLength
The number of elements used to pack the object into an array.
|
attributes, boundingSphere, indices, primitiveType| Constructor and Description |
|---|
BoxOutlineGeometry(BoxOutlineGeometryOptions options) |
| Modifier and Type | Method and Description |
|---|---|
static Geometry |
createGeometry(BoxOutlineGeometry boxGeometry)
Computes the geometric representation of an outline of a box, including its vertices, indices, and a bounding sphere.
|
static BoxOutlineGeometry |
fromAxisAlignedBoundingBox(AxisAlignedBoundingBox boundingBox)
Creates an outline of a cube from the dimensions of an AxisAlignedBoundingBox.
|
static BoxOutlineGeometry |
fromDimensions(BoxOutlineGeometryOptions options)
Creates an outline of a cube centered at the origin given its dimensions.
|
static double[] |
pack(BoxOutlineGeometry value,
double[] array)
Stores the provided instance into the provided array.
|
static double[] |
pack(BoxOutlineGeometry value,
double[] array,
Integer startingIndex)
Stores the provided instance into the provided array.
|
static BoxOutlineGeometry |
unpack(double[] array)
Retrieves an instance from a packed array.
|
static BoxOutlineGeometry |
unpack(double[] array,
Integer startingIndex)
Retrieves an instance from a packed array.
|
static BoxOutlineGeometry |
unpack(double[] array,
Integer startingIndex,
BoxOutlineGeometry result)
Retrieves an instance from a packed array.
|
computeNumberOfVerticespublic static Integer packedLength
@JsConstructor public BoxOutlineGeometry(BoxOutlineGeometryOptions options)
@JsMethod public static Geometry createGeometry(BoxOutlineGeometry boxGeometry)
boxGeometry - A description of the box outline.@JsMethod public static BoxOutlineGeometry fromAxisAlignedBoundingBox(AxisAlignedBoundingBox boundingBox)
boundingBox - A description of the AxisAlignedBoundingBox.@JsMethod public static BoxOutlineGeometry fromDimensions(BoxOutlineGeometryOptions options)
options - BoxOutlineGeometryOptions@JsMethod public static double[] pack(BoxOutlineGeometry value, double[] array)
value - The value to pack.array - The array to pack into.@JsMethod public static double[] pack(BoxOutlineGeometry value, double[] array, Integer 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 BoxOutlineGeometry unpack(double[] array)
array - The packed array.@JsMethod public static BoxOutlineGeometry unpack(double[] array, Integer startingIndex)
array - The packed array.startingIndex - The starting index of the element to be unpacked.@JsMethod public static BoxOutlineGeometry unpack(double[] array, Integer startingIndex, BoxOutlineGeometry 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.