Klang C++
Language Reference (draft)
Loading...
Searching...
No Matches
klang::Generic::Graph< SIZE >::Point

A data point. More...

#include <klang.h>

Public Member Functions

bool valid () const
 
Seriesoperator>> (Series &series)
 

Public Attributes

double x
 
double y
 

Detailed Description

template<int SIZE>
struct klang::Generic::Graph< SIZE >::Point

Definition at line 1642 of file klang.h.

Member Function Documentation

◆ operator>>()

template<int SIZE>
Series & klang::Generic::Graph< SIZE >::Point::operator>> ( Series & series)

◆ valid()

template<int SIZE>
bool klang::Generic::Graph< SIZE >::Point::valid ( ) const
inline

Definition at line 1644 of file klang.h.

1644{ return !::isnan(x) && !::isinf(x) && !::isnan(y); } // NB: y can be +/- inf

References klang::Generic::Graph< SIZE >::Point::x, and klang::Generic::Graph< SIZE >::Point::y.

Member Data Documentation

◆ x

template<int SIZE>
double klang::Generic::Graph< SIZE >::Point::x

Definition at line 1643 of file klang.h.

Referenced by klang::Generic::Graph< SIZE >::Point::valid().

◆ y

template<int SIZE>
double klang::Generic::Graph< SIZE >::Point::y

Definition at line 1643 of file klang.h.

Referenced by klang::Generic::Graph< SIZE >::Point::valid().