OpenWalnut  1.5.0dev
Public Member Functions | List of all members
Rotator Class Reference

Provides a time dependent rotation around a specified axis. More...

+ Inheritance diagram for Rotator:
+ Collaboration diagram for Rotator:

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...
 

Detailed Description

Provides a time dependent rotation around a specified axis.

Definition at line 232 of file WGEAnimationManipulator.cpp.

Constructor & Destructor Documentation

◆ Rotator()

Rotator::Rotator ( double  time,
double  startTime,
WVector3d  axes,
double  degree,
double  speed 
)
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.

Parameters
degreerotate this number of degree
speedrotation speed in degrees per second
timecurrent time in seconds
startTimetime offset. When to start rotation
axesthe axes to rotate

Definition at line 245 of file WGEAnimationManipulator.cpp.

References Transformation::m_duration, and Transformation::m_finishTime.


The documentation for this class was generated from the following file: