Trax3 3.1.0
trax track library
Loading...
Searching...
No Matches
trax::CubicData Struct Reference

Data definig a cubic curve. More...

#include <C:/Trend/Development/Trax3/Code/trax/Curve.h>

Public Member Functions

bool operator!= (const CubicData &other) const noexcept
bool operator== (const CubicData &other) const noexcept
spat::Position< LengthCubicPositionAtStart () const noexcept
spat::Vector< LengthCubicOvershootAtStart () const noexcept
spat::Position< LengthCubicPositionAtEnd () const noexcept
spat::Vector< LengthCubicOvershootAtEnd () const noexcept
Construction
 CubicData (const spat::Position< Length > &a, const spat::Vector< Length > &b, const spat::Vector< Length > &c, const spat::Vector< Length > &d) noexcept
 CubicData (const spat::VectorBundle< Length > &start, const spat::VectorBundle< Length > &end) noexcept

Public Attributes

spat::Position< Lengtha
spat::Vector< Lengthb
spat::Vector< Lengthc
spat::Vector< Lengthd

Detailed Description

Data definig a cubic curve.

This is used for persistence. Cubic::GetData() receives the data and there is a Create() method to create the curve from this data set without any calculations made that might distort the values during many read/write cycles.

Member Data Documentation

◆ a

spat::Position<Length> trax::CubicData::a

Data values in the cubic equation p(t) = a + b*t + c*t² + d*t³

◆ b

spat::Vector<Length> trax::CubicData::b

Data values in the cubic equation p(t) = a + b*t + c*t² + d*t³

◆ c

spat::Vector<Length> trax::CubicData::c

Data values in the cubic equation p(t) = a + b*t + c*t² + d*t³

◆ d

spat::Vector<Length> trax::CubicData::d

Data values in the cubic equation p(t) = a + b*t + c*t² + d*t³


The documentation for this struct was generated from the following file:
  • C:/Trend/Development/Trax3/Code/trax/Curve.h