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
math::Point Struct Reference

Точка с геометрическими связями More...

#include <obstacles.h>

Inheritance diagram for math::Point:
Collaboration diagram for math::Point:

Public Member Functions

 Point ()=default
 
 Point (const lib::Point &p)
 
 Point (double xx, double yy)
 
Pointoperator+= (const Point &d)
 
Pointoperator-= (const Point &d)
 

Static Public Member Functions

static const Point InfPoint ()
 

Public Attributes

std::shared_ptr< lib::Pointanother_tangent_point = nullptr
 
double x
 
double y
 

Detailed Description

Точка с геометрическими связями

Constructor & Destructor Documentation

◆ Point() [1/3]

math::Point::Point ( )
default

◆ Point() [2/3]

math::Point::Point ( const lib::Point & p)
inline
49: lib::Point(p) {}
Математическая точка
Definition point.h:16

◆ Point() [3/3]

math::Point::Point ( double xx,
double yy )
inline
51: lib::Point{xx, yy} {}

Member Function Documentation

◆ InfPoint()

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

◆ operator+=()

Point & lib::Point::operator+= ( const Point & d)
inlineinherited
26 {
27 x += d.x;
28 y += d.y;
29 return *this;
30 }
double y
Definition point.h:18
double x
Definition point.h:17

◆ operator-=()

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

Member Data Documentation

◆ another_tangent_point

std::shared_ptr<lib::Point> math::Point::another_tangent_point = nullptr

◆ x

double lib::Point::x
inherited

◆ y

double lib::Point::y
inherited

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