BasicTerrain

open class BasicTerrain(tiles: List<TerrainTile>, sector: Sector, triStripElements: ShortArray?) : Terrain

Constructors

Link copied to clipboard
constructor(tiles: List<TerrainTile>, sector: Sector, triStripElements: ShortArray?)

Properties

Link copied to clipboard
open override val sector: Sector

Indicates the geographic rectangular region that contains this terrain. The returned sector may contain geographic areas where the terrain is nonexistent.

Functions

Link copied to clipboard
open override fun heightLimits(levelNumberDepth: Int, result: FloatArray)

Computes minimal and maximal height from available tiles with tile level offset not more than specified depth

Link copied to clipboard
open override fun intersect(line: Line, result: Vec3): Boolean

Computes the first intersection of this terrain with a specified line in Cartesian coordinates. The line is interpreted as a ray; intersection points behind the line's origin are ignored. If the line does not intersect the geometric surface modeled by this terrain, this returns false and does not modify the result argument.

Link copied to clipboard
open override fun surfacePoint(latitude: Angle, longitude: Angle, result: Vec3): Boolean

Computes the Cartesian coordinates of a geographic location on the terrain surface. If the latitude and longitude are outside the geometric surface modeled by this terrain, this returns false and does not modify the result argument.