Revision: | 1254 |
Committed: | Wed Jun 9 16:16:33 2004 UTC (20 years, 2 months ago) by tim |
File size: | 303 byte(s) |
Log Message: | 1. adding some useful math classes(Mat3x3d, Vector3d, Quaternion, Euler3) these classes use anonymous union and struct to support double[3], double[3][3] and double[4] 2. adding roll constraint algorithm |
# | User | Rev | Content |
---|---|---|---|
1 | tim | 1254 | #include "Euler3.hpp" |
2 | #include "Mat3x3d.hpp" | ||
3 | #include "Quaternion.hpp" | ||
4 | #include "Vector3d.hpp" | ||
5 | |||
6 | Euler3::Euler3(const Vector3d& v){ | ||
7 | this->theta = v.x; | ||
8 | this->phi = v.y; | ||
9 | this->psi = v.z; | ||
10 | } | ||
11 | |||
12 | Euler3::Euler3(Mat3x3d& m){ | ||
13 | *this = m.toEuler(); | ||
14 | } | ||
15 | |||
16 | Euler3::Euler3(Quaternion& q){ | ||
17 | *this = q.toEuler(); | ||
18 | } |
Name | Value |
---|---|
svn:executable | * |