The SlopeInfo structure stores additional information that is needed for computing terrain slope values for heightmap samples.
struct
|
SlopeInfo
|
A
SlopeInfo
value
where
both
scale
factors
are
1.0f
.
public
static
readonly
field
|
One
|
||
type
|
SlopeInfo
|
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.
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.
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). |
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. |
public
override
method
|
ToString
()
|
||
type
|
string
|