Changeset 139 for cpp/frams/util/3d.h


Ignore:
Timestamp:
02/20/14 17:49:28 (10 years ago)
Author:
sz
Message:

class renaming + minor corrections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/util/3d.h

    r121 r139  
    6262void getAngles(const Pt3D& X,const Pt3D& dir);
    6363void vectorProduct(const Pt3D& a,const Pt3D& b);
     64Pt3D vectorProduct(const Pt3D& p) const {return (*this)*p;}
     65Pt3D entrywiseProduct(const Pt3D &p) const {return Pt3D(x*p.x,y*p.y,z*p.z);} ///< also known as Hadamard product or Schur product
     66double dotProduct(const Pt3D& p) const {return x*p.x+y*p.y+z*p.z;}
    6467bool normalize();
    6568};
Note: See TracChangeset for help on using the changeset viewer.