dqrobotics / python

The DQ Robotics library in Python
https://dqrobotics.github.io
GNU Lesser General Public License v3.0
26 stars 9 forks source link

line-to-line angle function [QUESTION] #9

Closed juanjqo closed 5 years ago

juanjqo commented 5 years ago

Hi @mmmarinho,

There is no a function (to my best knowledge) to compute the angle between two lines in Python. (Using, for instance, the Eq. 35 of Marinho et al. (2019)) This is:

line1 = k_ + E_*cross(0 , k_);
line2 = i_ + E_*cross(0 , i_);
angle = DQ_Geometry.line_to_line_angle(line1, line2)

angle =

1.570796326794897

Could you add this feature (if feasible)?

Cheers,

Juancho

mmmarinho commented 5 years ago

Hello, @juanjqo

It's added. Let me know if it doesn't work well.

juanjqo commented 5 years ago

@mmmarinho Thanks!