OpenWalnut
1.5.0dev
|
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 degrees with a given speed. More... | |
Public Member Functions inherited from Transformation | |
virtual double | finish () const |
The time in seconds when this transformation is finished. More... | |
virtual double | duration () const |
The time in seconds this transformation is running. More... | |
Additional Inherited Members | |
Static Public Attributes inherited from Transformation | |
static WVector3d | axeX = WVector3d( 1.0, 0.0, 0.0 ) |
Vector representing the X axe. More... | |
static WVector3d | axeY = WVector3d( 0.0, 1.0, 0.0 ) |
Vector representing the Y axe. More... | |
static WVector3d | axeZ = WVector3d( 0.0, 0.0, 1.0 ) |
Vector representing the Z axe. More... | |
Protected Attributes inherited from Transformation | |
double | m_finishTime |
The time this is finished. More... | |
double | m_duration |
Duration time. More... | |
Provides a time dependent rotation around a specified axis.
Definition at line 232 of file WGEAnimationManipulator.cpp.
|
inline |
Create a rotation matrix which rotates a certain number of degrees 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 degrees per second |
time | current time in seconds |
startTime | time offset. When to start rotation |
axes | the axes to rotate |
Definition at line 245 of file WGEAnimationManipulator.cpp.
References Transformation::m_duration, and Transformation::m_finishTime.