get_rotations_around_vector#
- get_rotations_around_vector(cone_angle, cone_sampling, axis_angle=360.0, axis_sampling=None, vector=(1, 0, 0), n_symmetry=1, convention=None)[source]#
Generate rotations describing the possible placements of a vector in a cone.
- Parameters:
- cone_anglefloat
The half-angle of the cone in degrees.
- cone_samplingfloat
Angular increment used for sampling points on the cone in degrees.
- axis_anglefloat, optional
The total angle of rotation around the vector axis in degrees (default is 360.0).
- axis_samplingfloat, optional
Angular increment used for sampling points around the vector axis in degrees. If None, it takes the value of cone_sampling.
- vectorTuple[float], optional
Cartesian coordinates in zyx convention.
- n_symmetryint, optional
Number of symmetry axis around the vector axis.
- conventionstr, optional
Convention for angles. By default returns rotation matrices.
- Returns:
- NDArray
An array of rotation angles represented as Euler angles (phi, theta, psi) in degrees. The shape of the array is (n, 3), where n is the total number of rotation angles. Each row represents a set of rotation angles.
References