Subject: CGAL users discussion list
List archive
- From: Thomas Holzmann <>
- To:
- Subject: Re: [cgal-discuss] Compute angle between two vectors
- Date: Fri, 3 Mar 2017 13:32:41 +0100
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=None
- Ironport-phdr: 9a23:kPavbh2Ly+JeS0cBsmDT+DRfVm0co7zxezQtwd8ZseseKvad9pjvdHbS+e9qxAeQG96KtrQf16GN4uigATVGusnR9ihaMdRlbFwst4Y/p0QYGsmLCEn2frbBThcRO4B8bmJj5GyxKkNPGczzNBX4q3y26iMOSF2kbVImbre9JomHhMu+06W++obYfh5TrDu7e7J7ahus/ivLscxDvYtlL68qgjvOpmlNcuJQjTdoIlaBmh/64O+x95El7zlfofszscdcB/apN58kRKBVWWx1e1s+49fm4EHO
On 03/03/2017 12:50 PM, Laurent Rineau (CGAL/GeometryFactory) wrote:
Le Friday, March 3, 2017 11:30:48 AM CET Thomas Holzmann a écrit :
Hi,There is no way to compute exact angles. As far as I know, the acos, asin,
I'm using the epek kernel (without sqrt).
I'm having two Vector_3 and want to compute the angle between them.
I would usually compute the dot product between the normalized vectors,
but I cannot compute the normalized vectors without sqrt.
Is there also an (exact) way to compute the angle between the two
vectors in CGAL?
atan, atan2 trigonometric functions are always using floating point numbers.
Ok, thanks for the answer.
Is there a way to normalize exact vectors (without sqrt). When I could compute an exact unit vector, the inexact angle computation would not be a problem...
Thomas
--
====================================================
Dipl.-Ing. Thomas Holzmann
TU Graz - Institut fuer Maschinelles Sehen und Darstellen
Graz University of Technology - Institute for Computer Graphics & Vision
Inffeldgasse 16/II, 8010 Graz, Austria
http://www.icg.tugraz.at/
phone: +43 316 873 5091
====================================================
- [cgal-discuss] Compute angle between two vectors, Thomas Holzmann, 03/03/2017
- Re: [cgal-discuss] Compute angle between two vectors, Laurent Rineau (CGAL/GeometryFactory), 03/03/2017
- Re: [cgal-discuss] Compute angle between two vectors, Thomas Holzmann, 03/03/2017
- Re: [cgal-discuss] Compute angle between two vectors, Laurent Rineau (CGAL/GeometryFactory), 03/03/2017
- Re: [cgal-discuss] Compute angle between two vectors, Thomas Holzmann, 03/03/2017
- Re: [cgal-discuss] Compute angle between two vectors, Laurent Rineau (CGAL/GeometryFactory), 03/03/2017
- Re: [cgal-discuss] Compute angle between two vectors, Thomas Holzmann, 03/03/2017
- Re: [cgal-discuss] Compute angle between two vectors, Laurent Rineau (CGAL/GeometryFactory), 03/03/2017
Archive powered by MHonArc 2.6.18.