SPH
Public Member Functions | Public Attributes | List of all members
PlotPoint Struct Reference

Point in 2D plot. More...

#include <Point.h>

Inheritance diagram for PlotPoint:
OperatorTemplate< PlotPoint > ErrorPlotPoint

Public Member Functions

 PlotPoint ()=default
 
 PlotPoint (const Float x, const Float y)
 
PlotPointoperator+= (const PlotPoint &other)
 
PlotPointoperator*= (const Float value)
 
bool operator== (const PlotPoint &other) const
 
- Public Member Functions inherited from OperatorTemplate< PlotPoint >
PlotPoint operator+ (const PlotPoint &other) const
 
PlotPointoperator-= (const PlotPoint &other)
 
bool operator!= (const PlotPoint &other) const
 
PlotPoint operator* (const Float value) const
 
PlotPoint operator/ (const Float value) const
 
PlotPointoperator/= (const Float value)
 

Public Attributes

Float x
 
Float y
 

Detailed Description

Point in 2D plot.

Todo:
deduplicate with Gui Point class

Definition at line 16 of file Point.h.

Constructor & Destructor Documentation

◆ PlotPoint() [1/2]

PlotPoint::PlotPoint ( )
default

◆ PlotPoint() [2/2]

PlotPoint::PlotPoint ( const Float  x,
const Float  y 
)
inline

Definition at line 21 of file Point.h.

Member Function Documentation

◆ operator*=()

PlotPoint& PlotPoint::operator*= ( const Float  value)
inline

Definition at line 31 of file Point.h.

◆ operator+=()

PlotPoint& PlotPoint::operator+= ( const PlotPoint other)
inline

Definition at line 25 of file Point.h.

◆ operator==()

bool PlotPoint::operator== ( const PlotPoint other) const
inline

Definition at line 37 of file Point.h.

Member Data Documentation

◆ x

Float PlotPoint::x

Definition at line 17 of file Point.h.

◆ y

Float PlotPoint::y

Definition at line 17 of file Point.h.


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