NAP
Public Member Functions | Public Attributes | List of all members
FComplex< T, V > Struct Template Reference

#include <fcurve.h>

Public Member Functions

 FComplex ()=default
 
 FComplex (const T &t, const V &value)
 
FComplex operator+ (const FComplex &other) const
 
FComplex operator- (const FComplex &other) const
 
FComplex operator* (const T &other) const
 

Public Attributes

mTime
 Time mapped to the x axis. More...
 
mValue
 Value mapped to the y axis. More...
 

Description

template<typename T, typename V>
struct nap::math::FComplex< T, V >

A time/value pair to be used in function curves. This is not a regular 2D vector because the components may have different types.

Template Parameters
Ttype of the time parameter
Vtype of the value parameter

Constructor & Destructor Documentation

◆ FComplex() [1/2]

FComplex ( )
default

Cfreate a time/value pair with time at 0 and default values for V

◆ FComplex() [2/2]

FComplex ( const T &  t,
const V &  value 
)

Create a time/value pair

Parameters
tthe time
valuethe value

Member Function Documentation

◆ operator*()

FComplex operator* ( const T &  other) const

◆ operator+()

FComplex operator+ ( const FComplex< T, V > &  other) const

◆ operator-()

FComplex operator- ( const FComplex< T, V > &  other) const

Member Data Documentation

◆ mTime

T mTime

Time mapped to the x axis.

◆ mValue

V mValue

Value mapped to the y axis.