LibreOffice Module sd (master) 1
Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
sd::slidesorter::controller::AnimationBezierFunction Class Reference

#include <SlsAnimationFunction.hxx>

Public Member Functions

 AnimationBezierFunction (const double nX1, const double nY1)
 Create a cubic bezier curve whose start and end points are given implicitly as P0=(0,0) and P3=(1,1). More...
 
::basegfx::B2DPoint operator() (const double nT)
 

Static Private Member Functions

static double EvaluateComponent (const double nT, const double nV1, const double nV2)
 

Private Attributes

const double mnX1
 
const double mnY1
 
const double mnX2
 
const double mnY2
 

Detailed Description

Definition at line 30 of file SlsAnimationFunction.hxx.

Constructor & Destructor Documentation

◆ AnimationBezierFunction()

sd::slidesorter::controller::AnimationBezierFunction::AnimationBezierFunction ( const double  nX1,
const double  nY1 
)

Create a cubic bezier curve whose start and end points are given implicitly as P0=(0,0) and P3=(1,1).

The second control point is implicitly given as P2=(1-nY1,1-nX1).

Definition at line 30 of file SlsAnimationFunction.cxx.

Member Function Documentation

◆ EvaluateComponent()

double sd::slidesorter::controller::AnimationBezierFunction::EvaluateComponent ( const double  nT,
const double  nV1,
const double  nV2 
)
staticprivate

Definition at line 47 of file SlsAnimationFunction.cxx.

Referenced by operator()().

◆ operator()()

basegfx::B2DPoint sd::slidesorter::controller::AnimationBezierFunction::operator() ( const double  nT)

Definition at line 40 of file SlsAnimationFunction.cxx.

References EvaluateComponent(), mnX1, mnX2, mnY1, and mnY2.

Member Data Documentation

◆ mnX1

const double sd::slidesorter::controller::AnimationBezierFunction::mnX1
private

Definition at line 44 of file SlsAnimationFunction.hxx.

Referenced by operator()().

◆ mnX2

const double sd::slidesorter::controller::AnimationBezierFunction::mnX2
private

Definition at line 46 of file SlsAnimationFunction.hxx.

Referenced by operator()().

◆ mnY1

const double sd::slidesorter::controller::AnimationBezierFunction::mnY1
private

Definition at line 45 of file SlsAnimationFunction.hxx.

Referenced by operator()().

◆ mnY2

const double sd::slidesorter::controller::AnimationBezierFunction::mnY2
private

Definition at line 47 of file SlsAnimationFunction.hxx.

Referenced by operator()().


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