| 603 |
|
* @return the cross product (vector product) of t1 and t2 |
| 604 |
|
*/ |
| 605 |
|
template<typename Real, unsigned int Row, unsigned int Col> |
| 606 |
< |
inline Vector<Real, Row> cross( const RectMatrix<Real, Row, Col>& t1, |
| 606 |
> |
inline Vector<Real, Row> mCross( const RectMatrix<Real, Row, Col>& t1, |
| 607 |
|
const RectMatrix<Real, Row, Col>& t2 ) { |
| 608 |
|
Vector<Real, Row> result; |
| 609 |
|
unsigned int i1; |
| 615 |
|
for (unsigned int j = 0; j < Col; j++) { |
| 616 |
|
result[i] += t1(i1,j) * t2(i2,j) - t1(i2,j) * t2(i1,j); |
| 617 |
|
} |
| 618 |
< |
} |
| 618 |
> |
} |
| 619 |
|
return result; |
| 620 |
|
} |
| 621 |
|
|