SpatialModelTransform

class SpatialModelTransform(val frame: SpatialFrame, val baseElevation: Double, maxElevation: Double, verticalExaggeration: Double = 1.5, modelSize: Vec3 = Vec3(1f, 0.3f, 1f))(source)

Scales the local meters frame into the model: the box fits a footprint of about a meter and relief is exaggerated so a tabletop model still reads as hills.

Constructors

Link copied to clipboard
constructor(frame: SpatialFrame, baseElevation: Double, maxElevation: Double, verticalExaggeration: Double = 1.5, modelSize: Vec3 = Vec3(1f, 0.3f, 1f))

Properties

Link copied to clipboard

Meters above sea level that sit at y = 0.

Link copied to clipboard

Radius of the round map, the circle inscribed in the footprint, in model units.

Link copied to clipboard

x and z extents of the ground in model units.

Link copied to clipboard
Link copied to clipboard

Model units per ground meter.

Link copied to clipboard

Effective exaggeration after capping to the model height.

Functions

Link copied to clipboard
fun altitude(height: Float): Double
Link copied to clipboard
Link copied to clipboard
fun height(altitude: Double): Float
Link copied to clipboard
fun position(coordinate: LatLon, altitude: Double): Vec3