Skip to content
Brass Orrery

Orrery Terrain · OrreryTerrain module · function

Tool::

SolveFalloffContour

Normalised distance at which the brush strength factor falls to Level.

Declaration

inline bool SolveFalloffContour(EOrreryTerrainFalloff Falloff, double Level, double Start, double& OutT);
Header
#include "Tools/OrreryTerrainBrushFalloff.h"
Module
PublicDependencyModuleNames.Add("OrreryTerrain"); in your module’s Build.cs.
Stability
Stable: changes within a major version only add.

Description

Inverts EvaluateFalloff (monotone, so bisection to 1e-12).

Parameters

NameTypeDefaultMeaning
FalloffEOrreryTerrainFalloff—

The curve.

Leveldouble—

Strength factor, 0 to 1 exclusive.

Startdouble—

Falloff start, as EvaluateFalloff.

OutTdouble&—

Distance over the radius, between Start and 1.

Returns

false when Level is outside (0, 1) or the curve is Constant (no contour inside the brush); OutT untouched.