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 16:48:50 +0100
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=None
- Ironport-phdr: 9a23:D+v8nBTYtl0FSp4E1Y7NVPL+3tpsv+yvbD5Q0YIujvd0So/mwa69bB2N2/xhgRfzUJnB7Loc0qyN4v2mAjBLsczJmUtBWaQEbwUCh8QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnYdFRrlKAV6OPn+FJLMgMSrzeCy/IDYbxlViDanb75/KBW7oR/fu8QZjodvKbg9wQbVr3VVfOhb2XlmLk+JkRbm4cew8p9j8yBOtP8k6sVNT6b0cbkmQLJBFDgpPHw768PttRnYUAuA/WAcXXkMkhpJGAfK8hf3VYrsvyTgt+p93C6aPdDqTb0xRD+v4btnRAPuhSwaMTMy7WPZhdFqjK9DvRyvuRJ/zY7Xbo+bOvVxcaHScs8VS2daQsZcVDZMDp+gY4YBDecMO/tToYnnp1sJqBuzHReiBOPoyj9NnHD2xrAx3eYmEQHC3Q0gGsgBsHLSrN7oM6oSUee1zK3JzDXGdfxW3zH95ZPJch89rvGAR65wcdfeyUk1DQzEj0+cppb5Pz6M0OkGrmaV7+1lVe21im4nrRl8oiSyxscjkInGnIMUxkre+iVlxos+ON62SFZjbNK5DpddszuWO5V0T884XW1kojg2xqEYtZKjYSQG1pAqywTBZ/GFaYSE/A7vWPuLLTp2h39ofq+0iQyo/ki60OL8U9G50FZUoSpBldnBrnUN2AbS6siDUPty4EOh1iyP1gzJ9uFEPE80lbDBJJ8g2LI/jIYTvVzCHi/whkr2kLebelg69uWs8ejrfLfrqoWCO4NulA3yLroiltS6AesiMwgOW2ab+f671L3m5UD5QLJKjvk3k6ncqp/aI8Ibq7W4AwBJ3YYv8Qq/Dyqp0NQCh3YGLUhJdwibj4TxIVHBPOj4Deujg1SriDpk2//GMaflApnUM3fDkazhcqpg605H0wo+1stf5pJRCrEZOv3/QE7xtNrCDh84KQO42ejnCM8unr8ZDGmAC6vcPKLJukKT/couJfONbckbomXTMf8gssLuinowghc9eq272JIRbjjsHvNiMUCQZ3zEg9wOV3sXsRA3XqrjlAvRAnZoe3+uUvdktXkAA4W8ANKbSw==
On 03/03/2017 03:07 PM, Laurent Rineau (CGAL/GeometryFactory) wrote:
Le Friday, March 3, 2017 1:32:41 PM CET Thomas Holzmann a écrit :Yes, I'm already doing that. I just thought maybe there is a more elegant way to do this...
Is there a way to normalize exact vectors (without sqrt). When I couldI do not think so. Let's take for example the vector {1., 1., 1.}. Its
compute an exact unit vector, the inexact angle computation would not be
a problem...
normalize version is:
{ 1./sqrt(3.), 1./sqrt(3.), 1./sqrt(3.) }
I think you cannot normalize vectors without being able to compute sqrt. You
can probably compute *approximately normalized* vectors, though.
Thanks!
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.