SPH
Public Member Functions | List of all members
Coords Struct Reference

#include <Point.h>

Inheritance diagram for Coords:
BasicPoint< float, Coords >

Public Member Functions

 Coords ()=default
 
 Coords (const float x, const float y)
 
 Coords (const Pixel p)
 
Coords operator* (const Coords &other) const
 
Coords operator/ (const Coords &other) const
 
 operator Pixel () const
 
 operator wxPoint () const
 
- Public Member Functions inherited from BasicPoint< float, Coords >
 BasicPoint ()=default
 
 BasicPoint (const float x, const float y)
 
float & operator[] (const Size index)
 
const float & operator[] (const Size index) const
 
Coordsoperator+= (const Coords &other)
 
Coordsoperator-= (const Coords &other)
 
Coordsoperator*= (const float factor)
 
Coordsoperator/= (const float factor)
 
Coords operator+ (const Coords &other) const
 
Coords operator- (const Coords &other) const
 
Coords operator* (const float factor) const
 
Coords operator/ (const float factor) const
 
bool operator== (const Coords &other) const
 
bool operator!= (const Coords &other) const
 

Additional Inherited Members

- Public Attributes inherited from BasicPoint< float, Coords >
float x
 
float y
 

Detailed Description

Definition at line 115 of file Point.h.

Constructor & Destructor Documentation

◆ Coords() [1/3]

Coords::Coords ( )
default

◆ Coords() [2/3]

Coords::Coords ( const float  x,
const float  y 
)
inline

Definition at line 118 of file Point.h.

◆ Coords() [3/3]

Coords::Coords ( const Pixel  p)
inlineexplicit

Definition at line 121 of file Point.h.

Member Function Documentation

◆ operator Pixel()

Coords::operator Pixel ( ) const
inlineexplicit

Definition at line 142 of file Point.h.

◆ operator wxPoint()

Coords::operator wxPoint ( ) const
inlineexplicit

Definition at line 146 of file Point.h.

◆ operator*()

Coords Coords::operator* ( const Coords other) const
inline

Definition at line 127 of file Point.h.

◆ operator/()

Coords Coords::operator/ ( const Coords other) const
inline

Definition at line 134 of file Point.h.


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