Castor3D 0.16.0
Multiplatform 3D engine
Public Member Functions | List of all members
castor3d::InterpolatorT< castor::Quaternion, InterpolatorType::eLinear > Class Reference

Handles the Quaternion linear interpolations. More...

#include <Interpolator.hpp>

Inheritance diagram for castor3d::InterpolatorT< castor::Quaternion, InterpolatorType::eLinear >:
Inheritance graph
[legend]
Collaboration diagram for castor3d::InterpolatorT< castor::Quaternion, InterpolatorType::eLinear >:
Collaboration graph
[legend]

Public Member Functions

 InterpolatorT ()
 
castor::Quaternion interpolate (castor::Quaternion const &src, castor::Quaternion const &dst, float percent) const override
 Interpolation function.
 
- Public Member Functions inherited from castor3d::Interpolator< castor::Quaternion >
virtual C3D_API ~Interpolator () noexcept=default
 
InterpolatorType getType () const
 

Additional Inherited Members

- Protected Member Functions inherited from castor3d::Interpolator< castor::Quaternion >
 Interpolator (InterpolatorType type)
 

Detailed Description

Handles the Quaternion linear interpolations.

Constructor & Destructor Documentation

◆ InterpolatorT()

References castor3d::eLinear.

Member Function Documentation

◆ interpolate()

castor::Quaternion castor3d::InterpolatorT< castor::Quaternion, InterpolatorType::eLinear >::interpolate ( castor::Quaternion const & src,
castor::Quaternion const & dst,
float percent ) const
inlineoverridevirtual

Interpolation function.

Parameters
[in]srcThe start.
[in]dstThe end.
[in]percentThe percentage.

Implements castor3d::Interpolator< castor::Quaternion >.

References castor::QuaternionT< T >::slerp().

Here is the call graph for this function:

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