mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-31 01:20:38 +08:00
fix formatting for examples
This is mostly just applying the existing clang format config, except: - Use NOLINT on overlong comment lines. - Wrap some sections in 'clang-format off' / 'clang format on'. - Manually split or join some multi-line strings. Change-Id: Ia1a40eeb92112e12c3a169309afe087af55b2f4f
This commit is contained in:
@@ -41,9 +41,9 @@ namespace examples {
|
||||
// [-pi to pi).
|
||||
class AngleLocalParameterization {
|
||||
public:
|
||||
|
||||
template <typename T>
|
||||
bool operator()(const T* theta_radians, const T* delta_theta_radians,
|
||||
bool operator()(const T* theta_radians,
|
||||
const T* delta_theta_radians,
|
||||
T* theta_radians_plus_delta) const {
|
||||
*theta_radians_plus_delta =
|
||||
NormalizeAngle(*theta_radians + *delta_theta_radians);
|
||||
@@ -53,7 +53,8 @@ class AngleLocalParameterization {
|
||||
|
||||
static ceres::LocalParameterization* Create() {
|
||||
return (new ceres::AutoDiffLocalParameterization<AngleLocalParameterization,
|
||||
1, 1>);
|
||||
1,
|
||||
1>);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user