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

Graph axes (x/y) More...

#include <klang.h>

Public Member Functions

bool valid () const
 
void clear ()
 
bool contains (const Point &pt) const
 

Public Attributes

Axis x
 
Axis y
 

Detailed Description

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

Definition at line 1752 of file klang.h.

Member Function Documentation

◆ clear()

template<int SIZE>
void klang::Generic::Graph< SIZE >::Axes::clear ( )
inline

Definition at line 1755 of file klang.h.

1755{ x = { 0,0 }; y = { 0,0 }; }

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

◆ contains()

template<int SIZE>
bool klang::Generic::Graph< SIZE >::Axes::contains ( const Point & pt) const
inline

Definition at line 1756 of file klang.h.

1756{ return x.contains(pt.x) && y.contains(pt.y); }
bool contains(double value) const
Definition klang.h:1729

◆ valid()

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

Definition at line 1754 of file klang.h.

1754{ return x.valid() && y.valid(); }

Member Data Documentation

◆ x

template<int SIZE>
Axis klang::Generic::Graph< SIZE >::Axes::x

Definition at line 1753 of file klang.h.

Referenced by klang::Generic::Graph< SIZE >::Axes::clear().

◆ y

template<int SIZE>
Axis klang::Generic::Graph< SIZE >::Axes::y

Definition at line 1753 of file klang.h.

Referenced by klang::Generic::Graph< SIZE >::Axes::clear().