MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetVector3

Function GetVector3

Source/Engine/Core/RandomStream.h:149–152  ·  view source on GitHub ↗

Gets a random with components in a range between [0;1].

Source from the content-addressed store, hash-verified

147 /// Gets a random <see cref="Vector3"/> with components in a range between [0;1].
148 /// </summary>
149 Vector3 GetVector3() const
150 {
151 return Vector3(GetFraction(), GetFraction(), GetFraction());
152 }
153
154 /// <summary>
155 /// Helper function for rand implementations.

Callers

nothing calls this directly

Calls 2

GetFractionFunction · 0.85
Vector3Class · 0.50

Tested by

no test coverage detected