HeightmapProjector

Description

sealed class Tinman.Terrain.Heightmaps.HeightmapProjector

Derived from

Disposable abstract

The HeightmapProjector class can be used to perform map projections between heightmaps.

Public / Methods

Project

2 overloads


[ThreadSafe]
public method Project1 → (1)

region in : CubemapFaceRect

The region to compute in the output heightmap.

Computes all samples in the given region of the output heightmap by projecting them to the input heightmap.

IOException

If an I/O error has occurred.


[ThreadSafe]
public method Project2 → (5)

in : int32

[⇐HeightmapProjector.Output.Width-width]
X-coordinate of top-left sample of heightmap range, in cubemap face coordinates.

in : int32

[⇐HeightmapProjector.Output.Height-height]
Y-coordinate of top-left sample of heightmap range, in cubemap face coordinates.

width in : int32

[>=0]
Width of heightmap range.

height in : int32

[>=0]
Height of heightmap range.

face opt : CubemapFace = CubemapFace.NegZ

The cubemap face.

Computes all samples in the given region of the output heightmap by projecting them to the input heightmap.

IOException

If an I/O error has occurred.

Public / Attributes

Input


public attribute Input → (get)

value : IHeightmap

[not-null]
The input heightmap (rectangular).

The input heightmap.

Output


public attribute Output → (get)

value : IHeightmap

[not-null]
The output heightmap (cubemap).

The output heightmap.

Projection


public attribute Projection → (get)

value : IMapProjection

[not-null]
The map projection that transforms from output to input.

The used map projection.