MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::CubicBezierCurve< V > Struct Template Reference

Cubic Bezier curve. More...

#include <MRBezier.h>

Public Types

using VTraits = VectorTraits<V>
 
using T = typename VTraits::BaseType
 

Public Member Functions

getPoint (T t) const
 computes point on the curve from parameter value
 

Static Public Member Functions

static std::array< T, 4 > getWeights (T t)
 computes weights of every control point for given parameter value, the sum of all weights is equal to 1
 

Public Attributes

p [4]
 4 control points
 

Static Public Attributes

static constexpr int elements = VTraits::size
 

Detailed Description

template<typename V>
struct MR::CubicBezierCurve< V >

Cubic Bezier curve.

Member Typedef Documentation

◆ T

template<typename V >
using MR::CubicBezierCurve< V >::T = typename VTraits::BaseType

◆ VTraits

template<typename V >
using MR::CubicBezierCurve< V >::VTraits = VectorTraits<V>

Member Function Documentation

◆ getPoint()

template<typename V >
V MR::CubicBezierCurve< V >::getPoint ( T t) const
inline

computes point on the curve from parameter value

◆ getWeights()

template<typename V >
auto MR::CubicBezierCurve< V >::getWeights ( T t)
inlinestatic

computes weights of every control point for given parameter value, the sum of all weights is equal to 1

Member Data Documentation

◆ elements

template<typename V >
int MR::CubicBezierCurve< V >::elements = VTraits::size
staticconstexpr

◆ p

template<typename V >
V MR::CubicBezierCurve< V >::p[4]

4 control points


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