TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

struct SlopeInfo in Tinman.Terrain.Buffers

The SlopeInfo structure stores additional information that is needed for computing terrain slope values for heightmap samples.

struct SlopeInfo  

Public / Constants

One

A SlopeInfo value where both scale factors are 1.0f.

public static readonly field One
type SlopeInfo

Public / Attributes

ScaleHorizontal

The horizontal scale factor.

public readonly field ScaleHorizontal
type float32

Remarks:

The horizontal scale factor is applied to the local coordinates of a heightmap sample. The scaled coordinates are then used in the slope computation.

ScaleVertical

The vertical scale factor.

public readonly field ScaleVertical
type float32

Remarks:

The vertical scale factor is applied to the normalized elevation values of a heightmap sample.

Public / Constructors

SlopeInfo

Creates a new instance of SlopeInfo.

public constructor SlopeInfo (float32 scaleHorizontal, float32 scaleVertical)
params scaleHorizontal [>0] The horizontal scale factor (see ScaleHorizontal).
  scaleVertical [>=0] The vertical scale factor (see ScaleVertical).

Public / Methods

Scale

Scales this slope info value.

public method Scale (float32 x, float32 y)
type SlopeInfo
params x [>0] Horizontal scale factor.
  y [>0] Vertical scale factor.
returns The resulting scale factor.

ToString

public override method ToString ()
type string