Package-level declarations

Types

Link copied to clipboard
external class ArcType

ArcType defines the path that should be taken connecting vertices.

Link copied to clipboard
open external class AssociativeArray<T>

A collection of key-value pairs that is stored as a hash for easy lookup but also provides an array for fast iteration.

Link copied to clipboard
external object AttributeCompression

Attribute compression and decompression functions.

Link copied to clipboard
external class AttributeType

An enum describing the attribute type for glTF and 3D Tiles.

Link copied to clipboard
open external class AxisAlignedBoundingBox(var minimum: Cartesian3 = definedExternally, var maximum: Cartesian3 = definedExternally, var center: Cartesian3 = definedExternally)

Creates an instance of an AxisAlignedBoundingBox from the minimum and maximum points along the x, y, and z axes.

Link copied to clipboard

A function used to compare two items while performing a binary search.

Link copied to clipboard
open external class BoundingRectangle(var x: Double = definedExternally, var y: Double = definedExternally, var width: Double = definedExternally, var height: Double = definedExternally)

A bounding rectangle given by a corner, width and height.

Link copied to clipboard
open external class BoundingSphere(var center: Cartesian3 = definedExternally, var radius: Double = definedExternally)

A bounding sphere with a center and a radius.

Link copied to clipboard
open external class BoxGeometry(options: BoxGeometry.ConstructorOptions)

Describes a cube centered at the origin.

Link copied to clipboard

A description of the outline of a cube centered at the origin.

Link copied to clipboard
external interface CameraLike

An object with the position, direction, and up vector of a camera, such as Camera.

Link copied to clipboard
open external class Cartesian2(var x: Double = definedExternally, var y: Double = definedExternally)

A 2D Cartesian point.

Link copied to clipboard
open external class Cartesian3(var x: Double = definedExternally, var y: Double = definedExternally, var z: Double = definedExternally)

A 3D Cartesian point.

Link copied to clipboard
open external class Cartesian4(var x: Double = definedExternally, var y: Double = definedExternally, var z: Double = definedExternally, var w: Double = definedExternally)

A 4D Cartesian point.

Link copied to clipboard
open external class Cartographic(var longitude: Double = definedExternally, var latitude: Double = definedExternally, var height: Double = definedExternally)

A position defined by longitude, latitude, and height.

Link copied to clipboard

A Catmull-Rom spline is a cubic spline where the tangent at control points, except the first and last, are computed using the previous and next control points. Catmull-Rom splines are in the class C1.

Link copied to clipboard

A description of a circle on the ellipsoid. Circle geometry can be rendered with both Primitive and GroundPrimitive.

Link copied to clipboard

A description of the outline of a circle on the ellipsoid.

Link copied to clipboard
open external class Clock

A simple clock for keeping track of simulated time.

Link copied to clipboard
external class ClockRange

Constants used by Clock.tick to determine behavior when Clock.startTime or Clock.stopTime is reached.

Link copied to clipboard
external class ClockStep

Constants to determine how much time advances with each call to Clock.tick.

Link copied to clipboard
open external class Color(var red: Double = definedExternally, var green: Double = definedExternally, var blue: Double = definedExternally, var alpha: Double = definedExternally)

A color, specified using red, green, blue, and alpha values, which range from 0 (no intensity) to 1.0 (full intensity).

Link copied to clipboard
open external class ColorGeometryInstanceAttribute(red: Double? = definedExternally, green: Double? = definedExternally, blue: Double? = definedExternally, alpha: Double? = definedExternally)

Value and type information for per-instance geometry color.

Link copied to clipboard
external class ComponentDatatype

WebGL component datatypes. Components are intrinsics, which form attributes, which form vertices.

Link copied to clipboard
open external class ConstantSpline(val value: JsAny)

A spline that evaluates to a constant value. Although this follows the Spline interface, it does not maintain an internal array of times since its value never changes.

Link copied to clipboard

A description of a polygon composed of arbitrary coplanar positions.

Link copied to clipboard

A description of the outline of a polygon composed of arbitrary coplanar positions.

Link copied to clipboard
external class CornerType

Style options for corners.

Link copied to clipboard

A description of a corridor. Corridor geometry can be rendered with both Primitive and GroundPrimitive.

Link copied to clipboard

A description of a corridor outline.

Link copied to clipboard
external object CubicRealPolynomial

Defines functions for 3rd order polynomial functions of one variable with only real coefficients.

Link copied to clipboard
open external class CullingVolume(var planes: ReadonlyArray<Cartesian4> = definedExternally)

The culling volume defined by planes.

Link copied to clipboard

A description of a cylinder.

Link copied to clipboard

A description of the outline of a cylinder.

Link copied to clipboard
typealias DefaultEvent = Event<() -> Unit>
Link copied to clipboard
open external class DeveloperError(val message: String = definedExternally) : Throwable

Constructs an exception object that is thrown due to a developer error, e.g., invalid argument, argument out of range, etc. This exception should only be thrown during development; it usually indicates a bug in the calling code. This exception should never be caught; instead the calling code should strive not to generate it.

Link copied to clipboard
open external class DistanceDisplayCondition(var near: Double = definedExternally, var far: Double = definedExternally)

Determines visibility based on the distance to the camera.

open external class DistanceDisplayConditionGeometryInstanceAttribute(near: Double? = definedExternally, far: Double? = definedExternally)

Value and type information for per-instance geometry attribute that determines if the geometry instance has a distance display condition.

Link copied to clipboard
external interface EigenDecompositionResult
Link copied to clipboard

A description of an ellipse on an ellipsoid. Ellipse geometry can be rendered with both Primitive and GroundPrimitive.

Link copied to clipboard

A description of the outline of an ellipse on an ellipsoid.

Link copied to clipboard
open external class Ellipsoid(x: Double? = definedExternally, y: Double? = definedExternally, z: Double? = definedExternally)

A quadratic surface defined in Cartesian coordinates by the equation (x / a)^2 + (y / b)^2 + (z / c)^2 = 1. Primarily used by Cesium to represent the shape of planetary bodies.

Link copied to clipboard
open external class EllipsoidalOccluder(var ellipsoid: Ellipsoid, var cameraPosition: Cartesian3 = definedExternally)

Determine whether or not other objects are visible or hidden behind the visible horizon defined by an Ellipsoid and a camera position. The ellipsoid is assumed to be located at the origin of the coordinate system. This class uses the algorithm described in the Horizon Culling blog post.

Link copied to clipboard
open external class EllipsoidGeodesic(val start: Cartographic = definedExternally, val end: Cartographic = definedExternally, val ellipsoid: Ellipsoid = definedExternally)

Initializes a geodesic on the ellipsoid connecting the two provided planetodetic points.

Link copied to clipboard
open external class EllipsoidGeometry(options: EllipsoidGeometry.ConstructorOptions? = definedExternally)

A description of an ellipsoid centered at the origin.

Link copied to clipboard
open external class EllipsoidOutlineGeometry(options: EllipsoidOutlineGeometry.ConstructorOptions? = definedExternally)

A description of the outline of an ellipsoid centered at the origin.

Link copied to clipboard
open external class EllipsoidRhumbLine(val start: Cartographic = definedExternally, val end: Cartographic = definedExternally, val ellipsoid: Ellipsoid = definedExternally)

Initializes a rhumb line on the ellipsoid connecting the two provided planetodetic points.

Link copied to clipboard
open external class EllipsoidTangentPlane(var origin: Cartesian3, var ellipsoid: Ellipsoid = definedExternally)

A plane tangent to the provided ellipsoid at the provided origin. If origin is not on the surface of the ellipsoid, it's surface projection will be used. If origin is at the center of the ellipsoid, an exception will be thrown.

Link copied to clipboard
open external class EncodedCartesian3

A fixed-point encoding of a Cartesian3 with 64-bit floating-point components, as two Cartesian3 values that, when converted to 32-bit floating-point and added, approximate the original input.

Link copied to clipboard
open external class Event<Listener : Function<Unit>>

A generic utility class for managing subscribers for a particular event. This class is usually instantiated inside of a container class and exposed as a property for others to subscribe to.

Link copied to clipboard
open external class EventHelper

A convenience object that simplifies the common pattern of attaching event listeners to several events, then removing all those listeners at once later, for example, in a destroy method.

Link copied to clipboard
external class ExtrapolationType

Constants to determine how an interpolated value is extrapolated when querying outside the bounds of available data.

Link copied to clipboard
external object FixedFrameTransforms

Contains functions for transforming positions to various reference frames.

Link copied to clipboard
external object Frozen

Utilities helpful for setting a default value for a parameter.

Link copied to clipboard
open external class GeographicProjection(val ellipsoid: Ellipsoid = definedExternally)

A simple map projection where longitude and latitude are linearly mapped to X and Y by multiplying them by the Ellipsoid.maximumRadius. This projection is commonly known as geographic, equirectangular, equidistant cylindrical, or plate carrée. When using the WGS84 ellipsoid, it is also known as EPSG:4326.

Link copied to clipboard
open external class Geometry(options: Geometry.ConstructorOptions)

A geometry representation with attributes forming vertices and optional index data defining primitives. Geometries and an Appearance, which describes the shading, can be assigned to a Primitive for visualization. A Primitive can be created from many heterogeneous - in many cases - geometries for performance.

Link copied to clipboard
open external class GeometryAttribute

Values and type information for geometry attributes. A Geometry generally contains one or more attributes. All attributes together form the geometry's vertices.

Link copied to clipboard
open external class GeometryAttributes

Attributes, which make up a geometry's vertices. Each property in this object corresponds to a GeometryAttribute containing the attribute's data.

Link copied to clipboard
open external class GeometryFactory

Base class for all geometry creation utility classes that can be passed to GeometryInstance for asynchronous geometry creation.

Link copied to clipboard

Geometry instancing allows one Geometry object to be positions in several different locations and colored uniquely. For example, one BoxGeometry can be instanced several times, each with a different modelMatrix to change its position, rotation, and scale.

Link copied to clipboard

Values and type information for per-instance geometry attributes.

Link copied to clipboard

Represents which vertices should have a value of true for the applyOffset attribute

Link copied to clipboard
external object GeometryPipeline

Content pipeline functions for geometries.

Link copied to clipboard
open external class GregorianDate(var year: Int = definedExternally, var month: Int = definedExternally, var day: Int = definedExternally, var hour: Int = definedExternally, var minute: Int = definedExternally, var second: Int = definedExternally, var millisecond: Int = definedExternally, var isLeapSecond: Boolean = definedExternally)

Represents a Gregorian date in a more precise format than the JavaScript Date object. In addition to submillisecond precision, this object can also represent leap seconds.

Link copied to clipboard
open external class HeadingPitchRange(var heading: Double = definedExternally, var pitch: Double = definedExternally, var range: Double = definedExternally)

Defines a heading angle, pitch angle, and range in a local frame. Heading is the rotation from the local east direction where a positive angle is increasing southward. Pitch is the rotation from the local xy-plane. Positive pitch angles are above the plane. Negative pitch angles are below the plane. Range is the distance from the center of the frame.

Link copied to clipboard
open external class HeadingPitchRoll(var heading: Double = definedExternally, var pitch: Double = definedExternally, var roll: Double = definedExternally)

A rotation expressed as a heading, pitch, and roll. Heading is the rotation about the negative z axis. Pitch is the rotation about the negative y axis. Roll is the rotation about the positive x axis.

Link copied to clipboard

An InterpolationAlgorithm for performing Hermite interpolation.

Link copied to clipboard
open external class HermiteSpline(options: HermiteSpline.ConstructorOptions)

A Hermite spline is a cubic interpolating spline. Points, incoming tangents, outgoing tangents, and times must be defined for each control point. The outgoing tangents are defined for points 0, n - 2 and the incoming tangents are defined for points 1, n - 1. For example, when interpolating a segment of the curve between points[i] and points[i + 1], the tangents at the points will be outTangents[i] and inTangents[i], respectively.

Link copied to clipboard
external class IndexDatatype

Constants for WebGL index datatypes. These corresponds to the type parameter of drawElements.

Link copied to clipboard
external class InterpolationType

An enum describing the type of interpolation used in a glTF animation.

Link copied to clipboard
external class Intersect

This enumerated type is used in determining where, relative to the frustum, an object is located. The object can either be fully contained within the frustum (INSIDE), partially inside the frustum and partially outside (INTERSECTING), or somewhere entirely outside of the frustum's 6 planes (OUTSIDE).

Link copied to clipboard
external object Intersections2D

Contains functions for operating on 2D triangles.

Link copied to clipboard
external object IntersectionTests

Functions for computing the intersection between geometries such as rays, planes, triangles, and ellipsoids.

Link copied to clipboard
open external class Interval(var start: Double = definedExternally, var stop: Double = definedExternally)

Represents the closed interval start, stop.

Link copied to clipboard
external object Iso8601

Constants related to ISO8601 support.

Link copied to clipboard
open external class JulianDate(julianDayNumber: Double? = definedExternally, var secondsOfDay: Double = definedExternally, timeStandard: TimeStandard? = definedExternally)

Represents an astronomical Julian date, which is the number of days since noon on January 1, -4712 (4713 BC). For increased precision, this class stores the whole number part of the date and the seconds part of the date in separate components. In order to be safe for arithmetic and represent leap seconds, the date is always stored in the International Atomic Time standard TimeStandard.TAI.

Link copied to clipboard

An InterpolationAlgorithm for performing Lagrange interpolation.

Link copied to clipboard
open external class LeapSecond(date: JulianDate? = definedExternally, var offset: Double = definedExternally)

Describes a single leap second, which is constructed from a JulianDate and a numerical offset representing the number of seconds TAI is ahead of the UTC time standard.

Link copied to clipboard
external object LinearApproximation

An InterpolationAlgorithm for performing linear interpolation.

Link copied to clipboard
open external class LinearSpline(options: LinearSpline.ConstructorOptions)

A spline that uses piecewise linear interpolation to create a curve.

Link copied to clipboard
sealed external interface LocalFrameAxis

The name of an axis in a local reference frame centered at a point on the ellipsoid: 'east', 'north', 'up', 'west', 'south', or 'down'.

Link copied to clipboard
typealias LocalFrameToFixedFrame = (origin: Cartesian3, ellipsoid: Ellipsoid?, result: Matrix4?) -> Matrix4

Computes a 4x4 transformation matrix from a reference frame centered at the provided origin to the provided ellipsoid's fixed reference frame.

Link copied to clipboard
external interface MapProjection

Defines how geodetic ellipsoid coordinates (Cartographic) project to a flat map like Cesium's 2D and Columbus View modes.

Link copied to clipboard
external object Math

Math functions.

Link copied to clipboard
open external class Matrix2(column0Row0: Double? = definedExternally, column1Row0: Double? = definedExternally, column0Row1: Double? = definedExternally, column1Row1: Double? = definedExternally)

A 2x2 matrix, indexable as a column-major order array. Constructor parameters are in row-major order for code readability.

Link copied to clipboard
open external class Matrix3(column0Row0: Double? = definedExternally, column1Row0: Double? = definedExternally, column2Row0: Double? = definedExternally, column0Row1: Double? = definedExternally, column1Row1: Double? = definedExternally, column2Row1: Double? = definedExternally, column0Row2: Double? = definedExternally, column1Row2: Double? = definedExternally, column2Row2: Double? = definedExternally)

A 3x3 matrix, indexable as a column-major order array. Constructor parameters are in row-major order for code readability.

Link copied to clipboard
open external class Matrix4(column0Row0: Double? = definedExternally, column1Row0: Double? = definedExternally, column2Row0: Double? = definedExternally, column3Row0: Double? = definedExternally, column0Row1: Double? = definedExternally, column1Row1: Double? = definedExternally, column2Row1: Double? = definedExternally, column3Row1: Double? = definedExternally, column0Row2: Double? = definedExternally, column1Row2: Double? = definedExternally, column2Row2: Double? = definedExternally, column3Row2: Double? = definedExternally, column0Row3: Double? = definedExternally, column1Row3: Double? = definedExternally, column2Row3: Double? = definedExternally, column3Row3: Double? = definedExternally)

A 4x4 matrix, indexable as a column-major order array. Constructor parameters are in row-major order for code readability.

Link copied to clipboard

A function used to compare two items while performing a merge sort.

Link copied to clipboard

A spline that linearly interpolates over an array of weight values used by morph targets.

Link copied to clipboard
open external class NearFarScalar(var near: Double = definedExternally, var nearValue: Double = definedExternally, var far: Double = definedExternally, var farValue: Double = definedExternally)

Represents a scalar value's lower and upper bound at a near distance and far distance in eye space.

Link copied to clipboard
open external class Occluder(occluderBoundingSphere: BoundingSphere, var cameraPosition: Cartesian3)

Creates an Occluder derived from an object's position and radius, as well as the camera position. The occluder can be used to determine whether or not other objects are visible or hidden behind the visible horizon defined by the occluder and camera position.

Link copied to clipboard
open external class OrientedBoundingBox(var center: Cartesian3 = definedExternally, var halfAxes: Matrix3 = definedExternally)

Creates an instance of an OrientedBoundingBox. An OrientedBoundingBox of some object is a closed and convex rectangular cuboid. It can provide a tighter bounding volume than BoundingSphere or AxisAlignedBoundingBox in many cases.

Link copied to clipboard
open external class OrthographicFrustum

The viewing frustum is defined by 6 planes. Each plane is represented by a Cartesian4 object, where the x, y, and z components define the unit vector normal to the plane, and the w component is the distance of the plane from the origin/camera position.

Link copied to clipboard
open external class OrthographicOffCenterFrustum

The viewing frustum is defined by 6 planes. Each plane is represented by a Cartesian4 object, where the x, y, and z components define the unit vector normal to the plane, and the w component is the distance of the plane from the origin/camera position.

Link copied to clipboard
external interface Packable<T : JsAny>

Static interface for types which can store their values as packed elements in an array. These methods and properties are expected to be defined on a constructor function.

Link copied to clipboard
external object PackableForInterpolation

Static interface for Packable types which are interpolated in a different representation than their packed value. These methods and properties are expected to be defined on a constructor function.

Link copied to clipboard
open external class PerspectiveFrustum

The viewing frustum is defined by 6 planes. Each plane is represented by a Cartesian4 object, where the x, y, and z components define the unit vector normal to the plane, and the w component is the distance of the plane from the origin/camera position.

Link copied to clipboard
open external class PerspectiveOffCenterFrustum

The viewing frustum is defined by 6 planes. Each plane is represented by a Cartesian4 object, where the x, y, and z components define the unit vector normal to the plane, and the w component is the distance of the plane from the origin/camera position.

Link copied to clipboard
external class PixelDatatype

The data type of a pixel.

Link copied to clipboard
external class PixelFormat

The format of a pixel, i.e., the number of components it has and what they represent.

Link copied to clipboard
open external class Plane(var normal: Cartesian3, var distance: Double)

A plane in Hessian Normal Form defined by

Link copied to clipboard
open external class PlaneGeometry(options: PlaneGeometry.ConstructorOptions? = definedExternally)

Describes geometry representing a plane centered at the origin, with a unit width and length.

Link copied to clipboard
open external class PlaneOutlineGeometry

Describes geometry representing the outline of a plane centered at the origin, with a unit width and length.

Link copied to clipboard

A description of a polygon on the ellipsoid. The polygon is defined by a polygon hierarchy. Polygon geometry can be rendered with both Primitive and GroundPrimitive.

Link copied to clipboard
open external class PolygonHierarchy(var positions: ReadonlyArray<Cartesian3> = definedExternally, var holes: ReadonlyArray<PolygonHierarchy> = definedExternally)

An hierarchy of linear rings which define a polygon and its holes. The holes themselves may also have holes which nest inner polygons.

Link copied to clipboard

A description of the outline of a polygon on the ellipsoid. The polygon is defined by a polygon hierarchy.

Link copied to clipboard
external object PolygonPipeline

Polygon geometry processing functions, including triangulation and subdivision.

Link copied to clipboard

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. The polyline is capable of displaying with a material.

Link copied to clipboard
external object PolylinePipeline

Polyline geometry processing functions, including arc generation and subdivision.

Link copied to clipboard

A description of a polyline with a volume (a 2D shape extruded along a polyline).

Link copied to clipboard

A description of a polyline with a volume (a 2D shape extruded along a polyline).

Link copied to clipboard
external class PrimitiveType

The type of a geometric primitive, i.e., points, lines, and triangles.

Link copied to clipboard
external object QuadraticRealPolynomial

Defines functions for 2nd order polynomial functions of one variable with only real coefficients.

Link copied to clipboard
external object QuarticRealPolynomial

Defines functions for 4th order polynomial functions of one variable with only real coefficients.

Link copied to clipboard
open external class Quaternion(var x: Double = definedExternally, var y: Double = definedExternally, var z: Double = definedExternally, var w: Double = definedExternally)

A set of 4-dimensional coordinates used to represent rotation in 3-dimensional space.

Link copied to clipboard

A spline that uses spherical linear (slerp) interpolation to create a quaternion curve. The generated curve is in the class C1.

Link copied to clipboard
open external class Queue

A queue that can enqueue items at the end, and dequeue items from the front.

Link copied to clipboard
open external class Ray(var origin: Cartesian3 = definedExternally, var direction: Cartesian3 = definedExternally)

Represents a ray that extends infinitely from the provided origin in the provided direction.

Link copied to clipboard
open external class Rectangle(var west: Double = definedExternally, var south: Double = definedExternally, var east: Double = definedExternally, var north: Double = definedExternally)

A two dimensional region specified as longitude and latitude coordinates.

Link copied to clipboard

A description of a cartographic rectangle on an ellipsoid centered at the origin. Rectangle geometry can be rendered with both Primitive and GroundPrimitive.

Link copied to clipboard

A description of the outline of a a cartographic rectangle on an ellipsoid centered at the origin.

Link copied to clipboard
external class ReferenceFrame

Constants for identifying well-known reference frames.

Link copied to clipboard
open external class RuntimeError(val message: String = definedExternally) : Throwable

Constructs an exception object that is thrown due to an error that can occur at runtime, e.g., out of memory, could not compile shader, etc. If a function may throw this exception, the calling code should be prepared to catch it.

Link copied to clipboard
open external class ShowGeometryInstanceAttribute(show: Boolean? = definedExternally)

Value and type information for per-instance geometry attribute that determines if the geometry instance will be shown.

Link copied to clipboard

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.

Link copied to clipboard
open external class SphereGeometry(options: SphereGeometry.ConstructorOptions? = definedExternally)

A description of a sphere centered at the origin.

Link copied to clipboard
open external class SphereOutlineGeometry(options: SphereOutlineGeometry.ConstructorOptions? = definedExternally)

A description of the outline of a sphere.

Link copied to clipboard
open external class Spherical(var clock: Double = definedExternally, var cone: Double = definedExternally, var magnitude: Double = definedExternally)

A set of curvilinear 3-dimensional coordinates.

Link copied to clipboard
abstract external class Spline

Creates a curve parameterized and evaluated by time. This type describes an interface and is not intended to be instantiated directly.

Link copied to clipboard
open external class SteppedSpline(options: SteppedSpline.ConstructorOptions)

A spline that is composed of piecewise constants representing a step function.

Link copied to clipboard
open external class TimeInterval

An interval defined by a start and a stop time; optionally including those times as part of the interval. Arbitrary data can optionally be associated with each instance for used with TimeIntervalCollection.

Link copied to clipboard
open external class TimeIntervalCollection(intervals: ReadonlyArray<TimeInterval>? = definedExternally)

A non-overlapping collection of TimeInterval instances sorted by start time.

Link copied to clipboard
external class TimeStandard

Provides the type of time standards which JulianDate can take as input.

Link copied to clipboard
external class TrackingReferenceFrame

Constants for identifying well-known tracking reference frames.

Link copied to clipboard
open external class TranslationRotationScale(var translation: Cartesian3 = definedExternally, var rotation: Quaternion = definedExternally, var scale: Cartesian3 = definedExternally)

An affine transformation defined by a translation, rotation, and scale.

Link copied to clipboard
external object TridiagonalSystemSolver

Uses the Tridiagonal Matrix Algorithm, also known as the Thomas Algorithm, to solve a system of linear equations where the coefficient matrix is a tridiagonal matrix.

Link copied to clipboard
open external class VertexFormat(options: JsAny? = definedExternally)

A vertex format defines what attributes make up a vertex. A VertexFormat can be provided to a Geometry to request that certain properties be computed, e.g., just position, position and normal, etc.

Link copied to clipboard
external object VerticalExaggeration

Functions for computing vertically-exaggerated heights and positions.

Link copied to clipboard
external interface Viewport
Link copied to clipboard
external class Visibility

This enumerated type is used in determining to what extent an object, the occludee, is visible during horizon culling. An occluder may fully block an occludee, in which case it has no visibility, may partially block an occludee from view, or may not block it at all, leading to full visibility.

Link copied to clipboard
open external class WallGeometry(options: WallGeometry.ConstructorOptions)

A description of a wall, which is similar to a KML line string. A wall is defined by a series of points, which extrude down to the ground. Optionally, they can extrude downwards to a specified height.

Link copied to clipboard

A description of a wall outline. A wall is defined by a series of points, which extrude down to the ground. Optionally, they can extrude downwards to a specified height.

Link copied to clipboard
open external class WebMercatorProjection(val ellipsoid: Ellipsoid = definedExternally)

The map projection used by Google Maps, Bing Maps, and most of ArcGIS Online, EPSG:3857. This projection use longitude and latitude expressed with the WGS84 and transforms them to Mercator using the spherical (rather than ellipsoidal) equations.

Link copied to clipboard
external class WindingOrder

Winding order defines the order of vertices for a triangle to be considered front-facing.

Properties

Link copied to clipboard
val LocalFrameAxis.Companion.down: LocalFrameAxis
Link copied to clipboard
val LocalFrameAxis.Companion.east: LocalFrameAxis
Link copied to clipboard
val LocalFrameAxis.Companion.north: LocalFrameAxis
Link copied to clipboard
val LocalFrameAxis.Companion.south: LocalFrameAxis
Link copied to clipboard
val LocalFrameAxis.Companion.up: LocalFrameAxis
Link copied to clipboard
val LocalFrameAxis.Companion.west: LocalFrameAxis

Functions

Link copied to clipboard
external fun barycentricCoordinates(point: Cartesian3, p0: Cartesian3, p1: Cartesian3, p2: Cartesian3, result: Cartesian3? = definedExternally): Cartesian3?

Computes the barycentric coordinates for a point with respect to a triangle.

Link copied to clipboard
external fun binarySearch(array: ReadonlyArray<JsAny>, itemToFind: JsAny, comparator: binarySearchComparator): Int

Finds an item in a sorted array.

Link copied to clipboard
external fun clone(obj: JsAny, deep: Boolean? = definedExternally): JsAny

Clones an object, returning a new object containing the same properties.

Link copied to clipboard
external fun combine(object1: JsAny? = definedExternally, object2: JsAny? = definedExternally, deep: Boolean? = definedExternally): JsAny

Merges two objects, copying their properties onto a new combined object. When two objects have the same property, the value of the property on the first object is used. If either object is undefined, it will be treated as an empty object.

Link copied to clipboard
external fun createGuid(): String

Creates a Globally unique identifier (GUID) string. A GUID is 128 bits long, and can guarantee uniqueness across space and time.

Link copied to clipboard
external fun destroyObject(obj: JsAny, message: String? = definedExternally)

Destroys an object. Each of the object's functions, including functions in its prototype, is replaced with a function that throws a DeveloperError, except for the object's isDestroyed function, which is set to a function that returns true. The object's properties are removed with delete.

Link copied to clipboard
external fun formatError(obj: JsAny): String

Formats an error object into a String. If available, uses name, message, and stack properties, otherwise, falls back on toString().

Link copied to clipboard
external fun getAbsoluteUri(relative: String, base: String? = definedExternally): String

Given a relative Uri and a base Uri, returns the absolute Uri of the relative Uri.

Link copied to clipboard
external fun getBaseUri(uri: String, includeQuery: Boolean? = definedExternally): String

Given a URI, returns the base path of the URI.

Link copied to clipboard
external fun getExtensionFromUri(uri: String): String

Given a URI, returns the extension of the URI.

Link copied to clipboard
external fun getFilenameFromUri(uri: String): String

Given a URI, returns the last segment of the URI, removing any path or query information.

Link copied to clipboard
external fun getTimestamp(): Double

Gets a timestamp that can be used in measuring the time between events. Timestamps are expressed in milliseconds, but it is not specified what the milliseconds are measured from. This function uses performance.now() if it is available, or Date.now() otherwise.

Link copied to clipboard
external fun isLeapYear(year: Int): Boolean

Determines if a given date is a leap year.

Link copied to clipboard
external fun mergeSort(array: ReadonlyArray<JsAny>, comparator: mergeSortComparator, userDefinedObject: JsAny? = definedExternally)

A stable merge sort.

Link copied to clipboard
external fun objectToQuery(obj: JsAny): String

Converts an object representing a set of name/value pairs into a query string, with names and values encoded properly for use in a URL. Values that are arrays will produce multiple values with the same name.

Link copied to clipboard

Determines if a point is inside a triangle.

Link copied to clipboard
external fun queryToObject(queryString: String): JsAny

Parses a query string into an object, where the keys and values of the object are the name/value pairs from the query string, decoded. If a name appears multiple times, the value in the object will be an array of values.

Link copied to clipboard
external fun srgbToLinear(value: Double): Double

Converts the value from sRGB color space to linear color space.

Link copied to clipboard
external fun Stereographic(position: Cartesian2? = definedExternally, tangentPlane: EllipseGeometry? = definedExternally)

Represents a point in stereographic coordinates, which can be obtained by projecting a cartesian coordinate from one pole onto a tangent plane at the other pole. The stereographic projection faithfully represents the relative directions of all great circles passing through its center point. To faithfully represents angles everywhere, this is a conformal projection, which means points are projected onto an arbrary sphere.

Link copied to clipboard
external fun subdivideArray(array: ReadonlyArray<JsAny>, numberOfArrays: Int)

Subdivides an array into a number of smaller, equal sized arrays.