Orrery Terrain · OrreryTerrain module · member function
UOrreryTerrainSculptComponent::
ResolveMaskAngle
The angle one dab uses, degrees: the pure rule behind RotationMode.
Declaration
static double ResolveMaskAngle(EOrreryTerrainMaskRotation Mode, double Base, double Range, const FVector2D& Travel, int64 Stroke, uint32 Step);- Header
#include "OrreryTerrainSculptComponent.h"- Module
PublicDependencyModuleNames.Add("OrreryTerrain");in your module’s Build.cs.- Stability
- Stable: changes within a major version only add.
- Thread
- Pure, any thread.
Description
Fixed gives Base; FollowStroke gives the yaw of Travel (from +X toward +Y) plus Base, or Base alone while Travel is zero; Random gives Base plus a draw in [-Range, Range] from SplitMix64 seeded by (Stroke, Step) alone.
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
Mode | EOrrery | — | How the dab turns its mask. |
Base | double | — | The brush angle, degrees. |
Range | double | — | Random only: the half-range, degrees (0 to 180). |
Travel | const FVector2 | — | The direction the pointer moved since the previous dab, world XY; need not be unit length. |
Stroke | int64 | — | The stroke number, a seed. |
Step | uint32 | — | The dab number in the stroke, a seed. |
Returns
Degrees, unwrapped (the brush carries it modulo a turn).
Note.
Pure, any thread.