Companion

object Companion

Functions

Link copied to clipboard
fun forCorners(bottomLeft: Location, bottomRight: Location, topRight: Location, topLeft: Location, texture: Texture): ProjectedMediaSurface

GPU-direct variant of forCorners — caller owns the Texture's lifecycle.

fun forCorners(bottomLeft: Location, bottomRight: Location, topRight: Location, topLeft: Location, imageSource: ImageSource): ProjectedMediaSurface

Build a non-axis-aligned surface image from four arbitrary ground corners. The returned ProjectedMediaSurface drapes imageSource onto terrain via its planar 2D-homography path, exact for flat ground and a close approximation for typical sub-km footprints over rolling relief.