Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] vector arithmetic

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] vector arithmetic


Chronological Thread 
  • From: Eugen Funk <>
  • To:
  • Subject: Re: [cgal-discuss] vector arithmetic
  • Date: Thu, 24 May 2012 08:11:19 +0200

try using eigen3. :)

Am 23.05.2012 22:38 schrieb "Tomislav Maric" <>:
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.






--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss




Archive powered by MHonArc 2.6.16.

Top of Page