Namespace inertialsim::geometry::random¶
Namespace List > inertialsim > geometry > random
Random rotation generation utilities (internal API). More...
Public Functions¶
| Type | Name |
|---|---|
| Quaternion | UniformQuaternion (int num_rotations=1, std::optional< uint64_t > seed=std::nullopt) Returns samples from a uniformly distributed quaternion. |
Detailed Description¶
Internal API
This namespace is part of InertialSim's internal API. Most users should
use the Rotation class and its factory methods rather than calling
these functions directly.
See also: Rotation
Public Functions Documentation¶
function UniformQuaternion¶
Returns samples from a uniformly distributed quaternion.
Quaternion inertialsim::geometry::random::UniformQuaternion (
int num_rotations=1,
std::optional< uint64_t > seed=std::nullopt
)
Parameters:
num_rotationsThe number of random quaternions to generate.seedOptional seed for the random number generator.
Returns:
Quaternion(s) (4, N), with scalar part first.
The documentation for this class was generated from the following file cpp/include/inertialsim/geometry/rotation_conversions/random.h