Changeset 139 for cpp/frams/util/3d.h
- Timestamp:
- 02/20/14 17:49:28 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/util/3d.h
r121 r139 62 62 void getAngles(const Pt3D& X,const Pt3D& dir); 63 63 void vectorProduct(const Pt3D& a,const Pt3D& b); 64 Pt3D vectorProduct(const Pt3D& p) const {return (*this)*p;} 65 Pt3D entrywiseProduct(const Pt3D &p) const {return Pt3D(x*p.x,y*p.y,z*p.z);} ///< also known as Hadamard product or Schur product 66 double dotProduct(const Pt3D& p) const {return x*p.x+y*p.y+z*p.z;} 64 67 bool normalize(); 65 68 };
Note: See TracChangeset
for help on using the changeset viewer.