Skip to content

Commit d7089f1

Browse files
committed
indexing into vector .v()(1) -> .v(1)
1 parent 1c11236 commit d7089f1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/uncertain/uncertain.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ bool BasicEntity2D::isIdenticalTo( const BasicEntity2D & us,
6363

6464
int idx = 0; // visitor
6565
a.v().cwiseAbs().maxCoeff( &idx ); // [~,idx] = max( abs(a) )
66-
a.m_val *= sign( a.v()(idx) ); // a = a*sign( a(idx) );
67-
b.m_val *= sign( b.v()(idx) ); // b = b*sign( b(idx) );
66+
a.m_val *= sign( a.v(idx) ); // a = a*sign( a(idx) );
67+
b.m_val *= sign( b.v(idx) ); // b = b*sign( b(idx) );
6868

6969
const Matrix<double, 3, 2> Jac = null(a.v()); // (A.120)
7070
const Vector2d d = Jac.adjoint()*( a.v() -b.v() ); // (10.141)

src/uncertain/usegment.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ uStraightLineSegment::uStraightLineSegment( const uPoint & ux,
9393
const Vector3d l = Sx*uy.v();
9494
assert( l.norm() > FLT_EPSILON && "identical points.");
9595

96-
const double xh = ux.v()(2);
97-
const double yh = uy.v()(2);
96+
const double xh = ux.v(2);
97+
const double yh = uy.v(2);
9898

9999
m_t.segment( 0, 3) = l;
100100
m_t.segment( 3, 3) = +sign(yh)*UUx*uy.v();

0 commit comments

Comments
 (0)