Skip to content
Brass Orrery

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

NameTypeDefaultMeaning
ModeEOrreryTerrainMaskRotation—

How the dab turns its mask.

Basedouble—

The brush angle, degrees.

Rangedouble—

Random only: the half-range, degrees (0 to 180).

Travelconst FVector2D&—

The direction the pointer moved since the previous dab, world XY; need not be unit length.

Strokeint64—

The stroke number, a seed.

Stepuint32—

The dab number in the stroke, a seed.

Returns

Degrees, unwrapped (the brush carries it modulo a turn).

Note.

Pure, any thread.