SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
meshkit::Point2 Class Reference

#include <geometry.hpp>

Collaboration diagram for meshkit::Point2:

Public Member Functions

constexpr Point2 ()=default
 
constexpr Point2 (double x, double y)
 
constexpr double x () const noexcept
 
constexpr double y () const noexcept
 
double * data () noexcept
 
const double * data () const noexcept
 
constexpr bool isNull () const
 
Point2 & operator*= (double s)
 
Point2 & operator/= (double s)
 
Point2 & operator+= (Point2 p)
 
Point2 & operator-= (Point2 p)
 

Static Public Member Functions

static constexpr double dotProduct (Point2 a, Point2 b)
 

Friends

constexpr Point2 operator+ (Point2 a, Point2 b)
 
constexpr Point2 operator- (Point2 a, Point2 b)
 
constexpr Point2 operator* (Point2 a, double s)
 
constexpr Point2 operator* (double s, Point2 a)
 
constexpr Point2 operator/ (Point2 a, double s)
 
constexpr bool operator== (Point2 a, Point2 b)
 
constexpr bool operator!= (Point2 a, Point2 b)
 

Constructor & Destructor Documentation

◆ Point2() [1/2]

constexpr meshkit::Point2::Point2 ( )
constexprdefault

◆ Point2() [2/2]

constexpr meshkit::Point2::Point2 ( double  x,
double  y 
)
inlineconstexpr

Member Function Documentation

◆ data() [1/2]

const double * meshkit::Point2::data ( ) const
inlinenoexcept

◆ data() [2/2]

double * meshkit::Point2::data ( )
inlinenoexcept

◆ dotProduct()

static constexpr double meshkit::Point2::dotProduct ( Point2  a,
Point2  b 
)
inlinestaticconstexpr
Here is the caller graph for this function:

◆ isNull()

constexpr bool meshkit::Point2::isNull ( ) const
inlineconstexpr
Here is the call graph for this function:

◆ operator*=()

Point2 & meshkit::Point2::operator*= ( double  s)
inline

◆ operator+=()

Point2 & meshkit::Point2::operator+= ( Point2  p)
inline

◆ operator-=()

Point2 & meshkit::Point2::operator-= ( Point2  p)
inline

◆ operator/=()

Point2 & meshkit::Point2::operator/= ( double  s)
inline

◆ x()

constexpr double meshkit::Point2::x ( ) const
inlineconstexprnoexcept
Here is the caller graph for this function:

◆ y()

constexpr double meshkit::Point2::y ( ) const
inlineconstexprnoexcept
Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ operator!=

constexpr bool operator!= ( Point2  a,
Point2  b 
)
friend

◆ operator* [1/2]

constexpr Point2 operator* ( double  s,
Point2  a 
)
friend

◆ operator* [2/2]

constexpr Point2 operator* ( Point2  a,
double  s 
)
friend

◆ operator+

constexpr Point2 operator+ ( Point2  a,
Point2  b 
)
friend

◆ operator-

constexpr Point2 operator- ( Point2  a,
Point2  b 
)
friend

◆ operator/

constexpr Point2 operator/ ( Point2  a,
double  s 
)
friend

◆ operator==

constexpr bool operator== ( Point2  a,
Point2  b 
)
friend

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