object VoxelKey extends Serializable
Typeclass instances. These (particularly Boundable) are necessary for when a layer's key type is parameterized as K.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- VoxelKey
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
- implicit def ordering[A <: VoxelKey]: Ordering[A]
-
implicit
val
spatialComponent: Component[VoxelKey, SpatialKey]
Since VoxelKey has x and y coordinates, it can take advantage of the SpatialComponent lens.
Since VoxelKey has x and y coordinates, it can take advantage of the SpatialComponent lens. Lenses are essentially "getters and setters" that can be used in highly generic code.
- implicit val voxelKeyDecoder: Decoder[VoxelKey]
- implicit val voxelKeyEncoder: Encoder[VoxelKey]
- implicit object Boundable extends Boundable[VoxelKey]