Locus No Pilotus
Project of four first grade MIPT DAFE/RSE students (for engineering practical work in the second semester) in Qt C++
Loading...
Searching...
No Matches
lib::Point Struct Reference

Математическая точка More...

#include <point.h>

Inheritance diagram for lib::Point:

Public Member Functions

 Point (const Point &point)=default
 
 Point (double x=0, double y=0)
 
Pointoperator+= (const Point &d)
 
Pointoperator-= (const Point &d)
 
Pointoperator= (const Point &point)=default
 

Static Public Member Functions

static const Point InfPoint ()
 

Public Attributes

double x
 
double y
 

Detailed Description

Математическая точка

Constructor & Destructor Documentation

◆ Point() [1/2]

lib::Point::Point ( double x = 0,
double y = 0 )
inline
20: x{x}, y{y} {}
double y
Definition point.h:18
double x
Definition point.h:17

◆ Point() [2/2]

lib::Point::Point ( const Point & point)
default

Member Function Documentation

◆ InfPoint()

static const Point lib::Point::InfPoint ( )
inlinestatic
38{ return {inf, inf}; }
constexpr double inf
Infinity.
Definition infinity.h:9

◆ operator+=()

Point & lib::Point::operator+= ( const Point & d)
inline
26 {
27 x += d.x;
28 y += d.y;
29 return *this;
30 }

◆ operator-=()

Point & lib::Point::operator-= ( const Point & d)
inline
32 {
33 x -= d.x;
34 y -= d.y;
35 return *this;
36 }

◆ operator=()

Point & lib::Point::operator= ( const Point & point)
default

Member Data Documentation

◆ x

double lib::Point::x

◆ y

double lib::Point::y

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