Package-level declarations

Types

Link copied to clipboard
data class BoundingBox(val minX: Double, val minY: Double, val minZ: Double, val maxX: Double, val maxY: Double, val maxZ: Double) : Record

An area in 3D space defined by two sets of points, a minimum and a maximum.

Link copied to clipboard
A standard colour in RGB format, with a red, green, and blue component.
Link copied to clipboard

Represents a three-dimensional Cardinal direction.

Link copied to clipboard
interface FactoryProvider

Used to provide various factories from the backend for static factory functions.

Link copied to clipboard
data class Position(val x: Double, val y: Double, val z: Double, val yaw: Float, val pitch: Float) : Record

A position with coordinates and rotation.

Link copied to clipboard
data class Rotation(val x: Float, val y: Float, val z: Float) : Record

A three-dimensional rotation of an object.

Link copied to clipboard

Thrown when a factory requested from the factory provider was not found.

Link copied to clipboard
data class Vec3d(val x: Double, val y: Double, val z: Double) : Record, Comparable<Vec3d>

A double vector with an X, Y, and Z component.

Link copied to clipboard
data class Vec3i(val x: Int, val y: Int, val z: Int) : Record, Comparable<Vec3i>

An integer vector with an X, Y, and Z component.

Functions

Link copied to clipboard
inline fun <T> FactoryProvider.provide(): T

Provides the factory with the given type T, or throws a TypeNotFoundException if there is no factory registered for the given type.

Link copied to clipboard
inline fun <T> FactoryProvider.register(factory: T)

Registers the given factory of the given type T to this factory provider.