remove const from return types for Rot3
parent
e90530d70b
commit
b058adc675
|
@ -407,12 +407,12 @@ namespace gtsam {
|
||||||
/// @{
|
/// @{
|
||||||
|
|
||||||
/** return 3*3 rotation matrix */
|
/** return 3*3 rotation matrix */
|
||||||
const Matrix3 matrix() const;
|
Matrix3 matrix() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return 3*3 transpose (inverse) rotation matrix
|
* Return 3*3 transpose (inverse) rotation matrix
|
||||||
*/
|
*/
|
||||||
const Matrix3 transpose() const;
|
Matrix3 transpose() const;
|
||||||
|
|
||||||
/// @deprecated, this is base 1, and was just confusing
|
/// @deprecated, this is base 1, and was just confusing
|
||||||
Point3 column(int index) const;
|
Point3 column(int index) const;
|
||||||
|
|
|
@ -110,7 +110,7 @@ Rot3 Rot3::operator*(const Rot3& R2) const {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
const Matrix3 Rot3::transpose() const {
|
Matrix3 Rot3::transpose() const {
|
||||||
return rot_.matrix().transpose();
|
return rot_.matrix().transpose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -175,7 +175,7 @@ Vector3 Rot3::ChartAtOrigin::Local(const Rot3& R, ChartJacobian H) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
const Matrix3 Rot3::matrix() const {
|
Matrix3 Rot3::matrix() const {
|
||||||
return rot_.matrix();
|
return rot_.matrix();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -86,7 +86,7 @@ namespace gtsam {
|
||||||
// and if we use quaternion_.toRotationMatrix(), the matrix is arbitrary.
|
// and if we use quaternion_.toRotationMatrix(), the matrix is arbitrary.
|
||||||
// Using eval() here doesn't help, it only helps if we use it in
|
// Using eval() here doesn't help, it only helps if we use it in
|
||||||
// the downstream code.
|
// the downstream code.
|
||||||
const Matrix3 Rot3::transpose() const {
|
Matrix3 Rot3::transpose() const {
|
||||||
return matrix().transpose();
|
return matrix().transpose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -120,7 +120,7 @@ namespace gtsam {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
const Matrix3 Rot3::matrix() const {return quaternion_.toRotationMatrix();}
|
Matrix3 Rot3::matrix() const {return quaternion_.toRotationMatrix();}
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
Point3 Rot3::r1() const { return Point3(quaternion_.toRotationMatrix().col(0)); }
|
Point3 Rot3::r1() const { return Point3(quaternion_.toRotationMatrix().col(0)); }
|
||||||
|
|
Loading…
Reference in New Issue