All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
MatCrossCross_Manip Class Reference

#include <matvec3.h>

Inheritance diagram for MatCrossCross_Manip:
Collaboration diagram for MatCrossCross_Manip:

Public Member Functions

 MatCrossCross_Manip ()
void Manipulate (Mat3x3 &m, const Vec3 &v1, const Vec3 &v2) const
- Public Member Functions inherited from Mat3x3_Manip
virtual void Manipulate (Mat3x3 &m) const
virtual void Manipulate (Mat3x3 &m, const doublereal d) const
virtual void Manipulate (Mat3x3 &m, const Vec3 &v) const
virtual ~Mat3x3_Manip (void)

Detailed Description

Definition at line 1518 of file matvec3.h.

Constructor & Destructor Documentation

MatCrossCross_Manip::MatCrossCross_Manip ( )

Definition at line 1520 of file matvec3.h.

1520 {};

Member Function Documentation

void MatCrossCross_Manip::Manipulate ( Mat3x3 m,
const Vec3 v1,
const Vec3 v2 
) const

Reimplemented from Mat3x3_Manip.

Definition at line 1521 of file matvec3.h.

References M11, M12, M13, M21, M22, M23, M31, M32, M33, Mat3x3::pGetMat(), Vec3::pGetVec(), V1, V2, and V3.

1521  {
1522  doublereal *pdm = m.pGetMat();
1523  const doublereal *pdv1 = v1.pGetVec();
1524  const doublereal *pdv2 = v2.pGetVec();
1526  double d11 = pdv1[V1]*pdv2[V1];
1527  double d22 = pdv1[V2]*pdv2[V2];
1528  double d33 = pdv1[V3]*pdv2[V3];
1530  pdm[M11] = -d22 - d33;
1531  pdm[M12] = pdv2[V1]*pdv1[V2];
1532  pdm[M13] = pdv2[V1]*pdv1[V3];
1533  pdm[M21] = pdv2[V2]*pdv1[V1];
1534  pdm[M22] = -d33 - d11;
1535  pdm[M23] = pdv2[V2]*pdv1[V3];
1536  pdm[M31] = pdv2[V3]*pdv1[V1];
1537  pdm[M32] = pdv2[V3]*pdv1[V2];
1538  pdm[M33] = -d11 - d22;
1539  };
Definition: matvec3.h:59
Definition: matvec3.h:50
Definition: matvec3.h:58
Definition: matvec3.h:51
Definition: matvec3.h:55
Definition: matvec3.h:56
Definition: matvec3.h:63
Definition: matvec3.h:62
Definition: matvec3.h:61
Definition: matvec3.h:57
const doublereal * pGetMat(void) const
Definition: matvec3.h:743
Definition: matvec3.h:49
const doublereal * pGetVec(void) const
Definition: matvec3.h:192
Definition: matvec3.h:60
double doublereal
Definition: colamd.c:52

Here is the call graph for this function:

The documentation for this class was generated from the following file: