MCPcopy Create free account
hub / github.com/carbonengine/trinity / RandAngle

Function RandAngle

trinity/Curves/Tr2CurveRandomAxisRotation.cpp:9–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7namespace
8{
9float RandAngle( std::default_random_engine& engine )
10{
11 return float( engine() - engine.min() ) / ( engine.max() - engine.min() ) * XM_PI * 2;
12}
13}
14
15// --------------------------------------------------------------------------------

Callers 1

SeedChangedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected