Frame Class Reference

#include <camera.h>

Public Member Functions

EIGEN_MAKE_ALIGNED_OPERATOR_NEW Frame (const Eigen::Vector3f &pos=Eigen::Vector3f::Zero(), const Eigen::Quaternionf &o=Eigen::Quaternionf())
 
Frame lerp (float alpha, const Frame &other) const
 

Public Attributes

Eigen::Quaternionf orientation
 
Eigen::Vector3f position
 

Constructor & Destructor Documentation

◆ Frame()

EIGEN_MAKE_ALIGNED_OPERATOR_NEW Frame::Frame ( const Eigen::Vector3f &  pos = Eigen::Vector3f::Zero(),
const Eigen::Quaternionf o = Eigen::Quaternionf() 
)
inline
22  : orientation(o), position(pos) {}
Eigen::Quaternionf orientation
Definition: camera.h:27
Eigen::Vector3f position
Definition: camera.h:28

Referenced by lerp().

Member Function Documentation

◆ lerp()

Frame Frame::lerp ( float  alpha,
const Frame other 
) const
inline
23  {
24  return Frame((1.f - alpha) * position + alpha * other.position, orientation.slerp(alpha, other.orientation));
25  }
EIGEN_MAKE_ALIGNED_OPERATOR_NEW Frame(const Eigen::Vector3f &pos=Eigen::Vector3f::Zero(), const Eigen::Quaternionf &o=Eigen::Quaternionf())
Definition: camera.h:21
RealScalar alpha
Definition: level1_cplx_impl.h:151

References alpha, Frame(), orientation, and position.

Referenced by RenderingWidget::resetCamera().

Member Data Documentation

◆ orientation

◆ position


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