Diff of /trunk/DefaultRenderer/CameraControl.cs
Parent Directory
|
Revision Log
|
Patch
| revision 34, Wed Sep 24 06:28:32 2008 UTC | revision 35, Wed Sep 24 10:50:36 2008 UTC | |
|---|---|---|
| # | Line 363 | Line 363 |
| 363 | Vector3D axis = Vector3D.CrossProduct(_previousPosition3D, currentPosition3D); | Vector3D axis = Vector3D.CrossProduct(_previousPosition3D, currentPosition3D); |
| 364 | double angle = Vector3D.AngleBetween(currentPosition3D,_previousPosition3D ); | double angle = Vector3D.AngleBetween(currentPosition3D,_previousPosition3D ); |
| 365 | ||
| 366 | angle *= 2; | angle *= 3.00000; |
| 367 | ||
| 368 | Matrix3D mat = new Matrix3D(); | Matrix3D mat = new Matrix3D(); |
| 369 | mat.RotateAt(new Quaternion(axis, angle), _clickedCenterPosition); | mat.RotateAt(new Quaternion(axis, angle), _clickedCenterPosition); |
|
||||||||
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |

