neurots.morphmath.rotation

Definition of basic rotation functionality.

Functions

angle3D(v1, v2)

Return the angle between v1, v2.

rotate_vector(vec, axis, angle)

Rotate the input vector vec by a selected angle around a specific axis.

rotation_around_axis(axis, angle)

Return a normalized vector rotated around the selected axis by an angle.

spherical_from_vector(vect)

Return the spherical coordinates of a vector: phi, theta.

vector_from_spherical(phi, theta)

Return a normalized vector from the spherical angles: phi, theta.

neurots.morphmath.rotation.angle3D(v1, v2)

Return the angle between v1, v2.

neurots.morphmath.rotation.rotate_vector(vec, axis, angle)

Rotate the input vector vec by a selected angle around a specific axis.

neurots.morphmath.rotation.rotation_around_axis(axis, angle)

Return a normalized vector rotated around the selected axis by an angle.

neurots.morphmath.rotation.spherical_from_vector(vect)

Return the spherical coordinates of a vector: phi, theta.

neurots.morphmath.rotation.vector_from_spherical(phi, theta)

Return a normalized vector from the spherical angles: phi, theta.