24 float total_error_squared_;
25 int total_error_count_;
29 : geometry_refs_(geometry_refs), total_error_squared_(0.0f), total_error_count_(0.0f)
35 return total_error_squared_;
39 return total_error_count_;
44 geometry_refs_[geo_i].positions[point_i] += offset;
55 total_error_squared_ += error_squared;
float total_error_squared() const
GaussSeidelUpdater(Span< GeometryRef > geometry_refs)
void add_residual_error(const int, const float error_squared)
void update_rotation(const int geo_i, const int point_i, const math::Quaternion &offset)
void update_position(const int geo_i, const int point_i, const float3 &offset)
int total_error_count() const
QuaternionBase< float > Quaternion
MatBase< T, NumCol, NumRow > normalize(const MatBase< T, NumCol, NumRow > &a)
math::Quaternion apply_rotation_offset(math::Quaternion rotation, float4 offset)
VecBase< float, 4 > float4
VecBase< float, 3 > float3