Subject: CGAL users discussion list
List archive
- From: Tomislav Maric <>
- To:
- Subject: Re: [cgal-discuss] vector arithmetic
- Date: Wed, 23 May 2012 22:36:57 +0200
On 05/23/2012 10:31 PM, Yifei Li wrote:
Hi all,
Say I have two vectors, how would you add them using CGAL? Similar questions include how to do vector difference, vector-scalar multiplication, and etc. Thanks
Yifei
Hi,
take a look at this:
http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Kernel_23/Chapter_main.html#Subsection_11.3.1
For calculations between Vectors and Points there are constraints: you can do arithmetic between a Vector and a Point, but not between two Points, and
you can use CGAL::Origin to convert a Point to a Vector.
- [cgal-discuss] vector arithmetic, Yifei Li, 05/23/2012
- Re: [cgal-discuss] vector arithmetic, Tomislav Maric, 05/23/2012
- Re: [cgal-discuss] vector arithmetic, Eugen Funk, 05/24/2012
- Re: [cgal-discuss] vector arithmetic, Tomislav Maric, 05/23/2012
Archive powered by MHonArc 2.6.16.