Package lib :: Package geometry :: Module vectors
[hide private]
[frames] | no frames]

Module vectors

source code

Collection of functions for vector operations.

Functions [hide private]
 
random_unit_vector(vector)
Generate a random rotation axis.
source code
Variables [hide private]
  __package__ = 'lib.geometry'

Imports: acos, cos, pi, sin, uniform


Function Details [hide private]

random_unit_vector(vector)

source code 

Generate a random rotation axis.

Uniform point sampling on a unit sphere is used to generate a random axis orientation.

Parameters:
  • vector (numpy 3D, rank-1 array) - The 3D rotation axis.