trajectories.maths

trajectories.maths#

Utility functions for mathematical operations.

Functions

R2D

Initialize 2D rotation matrix.

Ra

Initialize 3D rotation matrix around an arbitrary vector.

Rv

Initialize 3D rotation matrix from two vectors.

Rx

Initialize 3D rotation matrix around x axis.

Ry

Initialize 3D rotation matrix around y axis.

Rz

Initialize 3D rotation matrix around z axis.

compute_coprime_factors

Compute a list of coprime factors of Nc.

generate_fibonacci_circle

Generate 2D Cartesian coordinates shaped as Fibonacci spirals.

generate_fibonacci_lattice

Generate 2D Cartesian coordinates using the Fibonacci lattice.

generate_fibonacci_sphere

Generate 3D Cartesian coordinates as a Fibonacci sphere.

get_closest_fibonacci_number

Provide the closest Fibonacci number.

is_from_fibonacci_sequence

Check if an integer belongs to the Fibonacci sequence.