[Tutor] Calculating Deflection angles
Andreas Kostyrka
andreas at kostyrka.org
Wed Jul 4 20:35:37 CEST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Well, first that sounds somehow like a homework assignment, so only some
hints:
a) work out the underlying math. Consider all special edge cases.
b) I'm not completely sure what you need, but a feeling in the stomach
tells me that you might need the atan function, it's provided in Python
in the math module.
Andreas
nitin chandra wrote:
> Hello Every One,
>
> I create a list of coordinates of 2 lines.
> X11,Y11 & X12,Y12 as starting and ending of one line.
> X21,Y21 & X22, Y22 as starting and ending of the 2nd line.
>
> Now is there any way to calculate the deflection angle between the two
> lines? Will any modules be required other than Python 2.3 (on Linux)?
>
> and
>
> How will it be done?
>
> TIA,
>
> Nitin
> _______________________________________________
> Tutor maillist - Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGi+h4HJdudm4KnO0RAgaTAKDV9dRcoFRuFpU0l0uNRrVmmUGZvACgm2B8
ute28hDtZfeMQGg+0QoF7Mo=
=kBWC
-----END PGP SIGNATURE-----
More information about the Tutor
mailing list