MCPcopy Create free account
hub / github.com/PCGEx/PCGExtendedToolkit / ComputeSeed

Function ComputeSeed

Source/PCGExtendedToolkit/Private/PCGExRandom.cpp:62–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60 }
61
62 int ComputeSeed(const FPCGPoint& Point, const FVector& Offset)
63 {
64 return static_cast<int>(PCGExMath::Remap(
65 FMath::PerlinNoise3D(PCGExMath::Tile(Point.Transform.GetLocation() * 0.001 + Offset, FVector(-1), FVector(1))),
66 -1, 1, MIN_int32, MAX_int32));
67 }
68}

Callers 12

GetSeedFromPointFunction · 0.70
ApplyMethod · 0.70
CompileRangeMethod · 0.50
ProcessMethod · 0.50
ProcessMethod · 0.50
InsertMethod · 0.50
InsertIntersectionsMethod · 0.50
ExecuteTaskMethod · 0.50
ExecuteTaskMethod · 0.50
ExecuteTaskMethod · 0.50

Calls 2

TileFunction · 0.85
RemapFunction · 0.50

Tested by

no test coverage detected