Thunderbots Project
Loading...
Searching...
No Matches
SplineSegment2d Class Reference

#include <spline2d.h>

Public Member Functions

double getParametrizationStartVal () const
 
double getParametrizationEndVal () const
 
const Polynomial2dgetPolynomial () const
 

Protected Member Functions

 SplineSegment2d (double start_val, double end_val, Polynomial2d polynomial)
 

Friends

class Spline2d
 

Detailed Description

A segment of a spline, defined by a 2d polynomial, and the start and end values that define the section of the 2d polynomial that is part of the spline

Constructor & Destructor Documentation

◆ SplineSegment2d()

SplineSegment2d ( double  start_val,
double  end_val,
Polynomial2d  polynomial 
)
protected

Construct a SplineSegment2d

This is private since we only want to be able to create one inside the Spline2d class (a friend class of this one)

Parameters
start_valThe first value at which to evaluate the polynomial that lies on the spline
end_valThe last value at which to evaluate the polynomial that lies on the spline
polynomialThe polynomial, part of which is on the spline

Member Function Documentation

◆ getParametrizationEndVal()

double getParametrizationEndVal ( ) const

Get the last input to the polynomial that falls on the spline

Returns
The last input to the polynomial that falls on the spline

◆ getParametrizationStartVal()

double getParametrizationStartVal ( ) const

Get the first input to the polynomial that falls on the spline

Returns
The first input to the polynomial that falls on the spline

◆ getPolynomial()

const Polynomial2d & getPolynomial ( ) const

Get the polynomial underlying this spline segment

Returns
The polynomial underlying this spline segment

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