TinySpline  0.7.0
Spline Library for a Multitude of Programming Languages
Friends | List of all members
tinyspline::DeBoorNet Class Reference

Friends

class BSpline
 

DeBoorNet

 DeBoorNet (const DeBoorNet &other)
 
 DeBoorNet (DeBoorNet &&other)
 
virtual ~DeBoorNet ()
 
DeBoorNetoperator= (const DeBoorNet &other)
 
DeBoorNetoperator= (DeBoorNet &&other)
 
real knot () const
 
size_t index () const
 
size_t multiplicity () const
 
size_t numInsertions () const
 
size_t dimension () const
 
std::vector< real > points () const
 
std::vector< real > result () const
 
Vec2 resultVec2 (size_t idx=0) const
 
Vec3 resultVec3 (size_t idx=0) const
 
Vec4 resultVec4 (size_t idx=0) const
 
std::string toString () const
 

Member Function Documentation

◆ resultVec2()

tinyspline::Vec2 tinyspline::DeBoorNet::resultVec2 ( size_t  idx = 0) const

Returns the result at idx as ::Vec2. Note that, by design, idx cannot be greater than 1. It is safe to call this method even if ::dimension is less than 2. In this case, the missing components are set to 0. If ::dimension is greater than 2, the excess values are ignored.

Returns
The result at idx as ::Vec2.
Exceptions
std::out_of_rangeIf idx is greater than 1, or if idx is 1, but there is only one result.

◆ resultVec3()

tinyspline::Vec3 tinyspline::DeBoorNet::resultVec3 ( size_t  idx = 0) const

Returns the result at idx as ::Vec3. Note that, by design, idx cannot be greater than 1. It is safe to call this method even if ::dimension is less than 3. In this case, the missing components are set to 0. If ::dimension is greater than 3, the excess values are ignored.

Returns
The result at idx as ::Vec3.
Exceptions
std::out_of_rangeIf idx is greater than 1, or if idx is 1, but there is only one result.

◆ resultVec4()

tinyspline::Vec4 tinyspline::DeBoorNet::resultVec4 ( size_t  idx = 0) const

Returns the result at idx as ::Vec4. Note that, by design, idx cannot be greater than 1. It is safe to call this method even if ::dimension is less than 4. In this case, the missing components are set to 0. If ::dimension is greater than 4, the excess values are ignored.

Returns
The result at idx as ::Vec4.
Exceptions
std::out_of_rangeIf idx is greater than 1, or if idx is 1, but there is only one result.

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