in reply to Calculate Angle Between Three 3D Points

How about using something like this: Math::VectorReal ?
  • Comment on Re: Calculate Angle Between Three 3D Points

Replies are listed 'Best First'.
Re: Re: Calculate Angle Between Three 3D Points
by Anonymous Monk on Aug 20, 2003 at 18:48 UTC
    Thanks for the advice (and the rapid response!)
    However, I cannot get Math::VectorReal to work with my Perl.
    It gives the error message: Can't locate Math/VectorReal.pm in @INC

    I think it would be easier for now to fix the code written
    above, so does anyone see a mistake and know how to fix it?

      That's because you have to install it from CPAN. It's not a module that comes standard with Perl. Click on the link: Math::VectorReal and download it.

      ------
      We are the carpenters and bricklayers of the Information Age.

      The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6

      Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.