pytransform3d.rotations
.random_vector¶
- pytransform3d.rotations.random_vector(rng=Generator(PCG64) at 0x7FA769435900, n=3)[source]¶
Generate an nd vector with normally distributed components.
Each component will be sampled from .
- Parameters:
- rngnp.random.Generator, optional (default: random seed 0)
Random number generator
- nint, optional (default: 3)
Number of vector components
- Returns:
- varray, shape (n,)
Random vector
Examples using pytransform3d.rotations.random_vector
¶
Construct Rotation Matrix from Two Vectors
Construct Rotation Matrix from Two Vectors