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

#include <fcurve.h>

Public Member Functions

 FCurvePoint ()=default
 
 FCurvePoint (const FComplex< T, V > &pos, const FComplex< T, V > &inTan, const FComplex< T, V > &outTan)
 

Public Attributes

FComplex< T, V > mPos
 Position of the handle. More...
 
FComplex< T, V > mInTan
 Left tangent position, relative to mPos. More...
 
FComplex< T, V > mOutTan
 Right tangent position, relative to mPos. More...
 
ECurveInterp mInterp = ECurveInterp::Bezier
 
bool mTangentsAligned = true
 Non-essential to functionality, but necessary for editing. More...
 

Description

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

Represents a single handle on an FCurve

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

Constructor & Destructor Documentation

◆ FCurvePoint() [1/2]

FCurvePoint ( )
default

Create a point at time 0 and zeroed values. Tangents have reasonable default values.

◆ FCurvePoint() [2/2]

FCurvePoint ( const FComplex< T, V > &  pos,
const FComplex< T, V > &  inTan,
const FComplex< T, V > &  outTan 
)
Parameters
posPosition of the handle
inTanLeft tangent position, relative to point position
outTanRight tangent position, relative to point position

Member Data Documentation

◆ mInTan

FComplex<T, V> mInTan

Left tangent position, relative to mPos.

◆ mInterp

◆ mOutTan

FComplex<T, V> mOutTan

Right tangent position, relative to mPos.

◆ mPos

FComplex<T, V> mPos

Position of the handle.

◆ mTangentsAligned

bool mTangentsAligned = true

Non-essential to functionality, but necessary for editing.