#include <SbRotation.h>
|
| SbRotation () |
|
| SbRotation (const SbVec3d &axis, double radians) |
|
| SbRotation (double a11, double a12, double a13, double a14, double a21, double a22, double a23, double a24, double a31, double a32, double a33, double a34, double a41, double a42, double a43, double a44) |
|
void | multVec (const SbVec3d &src, SbVec3d &dst) const |
|
Definition at line 35 of file SbRotation.h.
◆ SbRotation() [1/3]
HEPVis::SbRotation::SbRotation |
( |
| ) |
|
◆ SbRotation() [2/3]
HEPVis::SbRotation::SbRotation |
( |
const SbVec3d & |
axis, |
|
|
double |
radians |
|
) |
| |
◆ SbRotation() [3/3]
HEPVis::SbRotation::SbRotation |
( |
double |
a11, |
|
|
double |
a12, |
|
|
double |
a13, |
|
|
double |
a14, |
|
|
double |
a21, |
|
|
double |
a22, |
|
|
double |
a23, |
|
|
double |
a24, |
|
|
double |
a31, |
|
|
double |
a32, |
|
|
double |
a33, |
|
|
double |
a34, |
|
|
double |
a41, |
|
|
double |
a42, |
|
|
double |
a43, |
|
|
double |
a44 |
|
) |
| |
Definition at line 68 of file SbRotation.cxx.
75 double m[4][4] = { { a11, a12, a13, a14 },
76 { a21, a22, a23, a24 },
77 { a31, a32, a33, a34 },
78 { a41, a42, a43, a44 } };
80 double scalerow =
m[0][0] +
m[1][1] +
m[2][2];
83 double s = ::sqrt(scalerow +
m[3][3]);
93 if (
m[1][1] >
m[0][0])
i = 1;
94 if (
m[2][2] >
m[
i][
i])
i = 2;
99 double s = ::sqrt((
m[
i][
i] - (
m[j][j] +
m[
k][
k])) +
m[3][3]);
109 if (
m[3][3] != 1.0) {
110 m_quat *= (1.0/::sqrt(
m[3][3]));
◆ multVec()
void HEPVis::SbRotation::multVec |
( |
const SbVec3d & |
src, |
|
|
SbVec3d & |
dst |
|
) |
| const |
◆ m_quat
SbVec4d HEPVis::SbRotation::m_quat |
|
private |
The documentation for this class was generated from the following files: