Skip to content

Commit

Permalink
[geometry] Add ability to transform one or a list of 3D points (store…
Browse files Browse the repository at this point in the history
…d colwise) by a pose (Vec3 => Mat3X).
  • Loading branch information
pmoulon committed Jan 21, 2016
1 parent 670ffad commit 09f2cbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/openMVG/geometry/pose3.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ class Pose3
inline Vec3 translation() const { return -(_rotation * _center); }

// Apply pose
inline Vec3 operator () (const Vec3& p) const
inline Mat3X operator () (const Mat3X& p) const
{
return _rotation * (p - _center);
return _rotation * (p.colwise() - _center);
}

// Composition
Expand Down

0 comments on commit 09f2cbc

Please sign in to comment.