fix constness of intersection methods (bug #309)

This commit is contained in:
Gael Guennebaud
2011-06-27 13:15:01 +02:00
parent 0b308e79c4
commit c98cd5e564
2 changed files with 3 additions and 3 deletions

View File

@@ -189,7 +189,7 @@ public:
*
* \note If \a other is approximately parallel to *this, this method will return any point on *this.
*/
VectorType intersection(const Hyperplane& other)
VectorType intersection(const Hyperplane& other) const
{
EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE(VectorType, 2)
Scalar det = coeffs().coeff(0) * other.coeffs().coeff(1) - coeffs().coeff(1) * other.coeffs().coeff(0);