Small refactor
parent
ee747604e7
commit
a56c6e728b
|
|
@ -131,10 +131,8 @@ Matrix3 Rot3::transpose() const {
|
|||
/* ************************************************************************* */
|
||||
Point3 Rot3::rotate(const Point3& p,
|
||||
OptionalJacobian<3,3> H1, OptionalJacobian<3,3> H2) const {
|
||||
if (H1 || H2) {
|
||||
if (H1) *H1 = rot_ * skewSymmetric(-p.x(), -p.y(), -p.z());
|
||||
if (H2) *H2 = rot_;
|
||||
}
|
||||
if (H1) *H1 = rot_ * skewSymmetric(-p.x(), -p.y(), -p.z());
|
||||
if (H2) *H2 = rot_;
|
||||
return Point3(rot_ * p.vector());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue