libCZI
Reading and Writing CZI documents made easy
libCZI::IDisplaySettings::CubicSplineCoefficients Struct Reference

The coefficients of a cubic spline defined by \(a\,x^3 + b\,x^2 + c\,x + d =y\). More...

#include <libCZI_Metadata.h>

Public Member Functions

double Get (int index) const
 

Public Attributes

double a
 The coefficient of the cube.
 
double b
 The coefficient of the square.
 
double c
 The coefficient of the linear term.
 
double d
 The constant.
 

Detailed Description

The coefficients of a cubic spline defined by \(a\,x^3 + b\,x^2 + c\,x + d =y\).

Member Function Documentation

◆ Get()

double libCZI::IDisplaySettings::CubicSplineCoefficients::Get ( int  index) const
inline

Gets the coefficients by an index (where a is 0, b is 1, c is 2 and d is 3). If the index is out-of-range, the method returns NaN.

Parameters
indexThe index of the coefficient to get.
Returns
The specified coefficient if the index is valid, NaN otherwise.

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