OpenWalnut
1.3.1
|
Provides a time dependent rotation around a specified axis. More...
Public Member Functions | |
Rotator (double time, double startTime, WVector3d axes, double degree, double speed) | |
Create a rotation matrix which rotates a certain number of degree with a given speed. | |
![]() | |
virtual double | finish () const |
The time in seconds when this transformation is finished. | |
virtual double | duration () const |
The time in seconds this transformation is running. |
Additional Inherited Members | |
![]() | |
static WVector3d | axeX = WVector3d( 1.0, 0.0, 0.0 ) |
Vector representing the X axe. | |
static WVector3d | axeY = WVector3d( 0.0, 1.0, 0.0 ) |
Vector representing the Y axe. | |
static WVector3d | axeZ = WVector3d( 0.0, 0.0, 1.0 ) |
Vector representing the Z axe. | |
![]() | |
double | m_finishTime |
The time this is finished. | |
double | m_duration |
Duration time. |
Provides a time dependent rotation around a specified axis.
Definition at line 233 of file WGEAnimationManipulator.cpp.
|
inline |
Create a rotation matrix which rotates a certain number of degree with a given speed.
This means, that the time interval is defined by speed and degree.
degree | rotate this number of degree |
speed | rotation speed in degree per second |
time | current time in seconds |
startTime | time offset. When to start rotation |
axes | the axes to rotate |
Definition at line 248 of file WGEAnimationManipulator.cpp.
References Transformation::m_duration, and Transformation::m_finishTime.