Fix GTSAM_TYPEDEF_POINTS_TO_VECTORS.
parent
aa2d0f3dec
commit
58ec261cd7
|
@ -87,7 +87,7 @@ Point3 Similarity3::transformFrom(const Point3& p, //
|
||||||
|
|
||||||
Pose3 Similarity3::transformFrom(const Pose3& T) const {
|
Pose3 Similarity3::transformFrom(const Pose3& T) const {
|
||||||
Rot3 R = R_.compose(T.rotation());
|
Rot3 R = R_.compose(T.rotation());
|
||||||
Point3 t = Point3(s_ * (R_.matrix() * T.translation().vector() + t_.vector()));
|
Point3 t = Point3(s_ * (R_ * T.translation() + t_));
|
||||||
return Pose3(R, t);
|
return Pose3(R, t);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue