Preview

class Preview(val scale: Float, val translation: Vec2)(source)

While a zoom is waiting for its terrain, the built terrain is shown scaled and shifted toward what the new circle will show. offset is the new center's position on the current disk and scale how much bigger the new circle draws the ground, both in model units. The scale is held between 0.2 and the size where the terrain's edge reaches maxRadius, and the shift is cut so no part of the terrain goes past maxRadius (under the bezel).

Constructors

Link copied to clipboard
constructor(scale: Float, translation: Vec2)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun apply(x: Float, z: Float): Vec2

Where a point on the built terrain shows during the preview.