Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] How can I check if a vector is normalized given the kernel ?

Subject: CGAL users discussion list

List archive

[cgal-discuss] How can I check if a vector is normalized given the kernel ?


Chronological Thread 
  • From: Priyank Jain <>
  • To:
  • Subject: [cgal-discuss] How can I check if a vector is normalized given the kernel ?
  • Date: Thu, 12 Nov 2009 20:49:55 -0500
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=QUqErsoO6fVJECbI7Il5mCcOlYl9OEVfVE8xsicku2LvojVA5mFS1466fGDOu0syHZ nrjpMq2p8iw42A3dR/gg5PtroYysvRqbOiA6Ij6rdbM0zl0olq6w01GQM8p4QXGDA4Yj jyorPz2OlYf22UwNqD9lG6FE98YlQlQTWIP68=

Hi,

Is there a way I can check if the vector is normalized or not ? I think this is a kernel dependent function since there are multiple data types that can be used, so I was wondering if something like that is available ?

Related to this, is there a function / functor which I can call to normalize the given vector ?

Also, I read this about directions: " They can be viewed as unit vectors, although there is no normalization internally, since this is error prone". After reading this, I am not sure how/when can I use Direction.

I have a projecting operation that I want to perform, something like this:

Point_3& newPoint = midPt + (direction * dist_Proj);

where midPt is a Point3,
direction = vector  (I want this to be a normalized vector)
dist_proj = double value

Can anyone please recommend me what would be a good way to do this in CGAL ?

Thank you
/Priyank Jain



Archive powered by MHonArc 2.6.16.

Top of Page