Круговое препятствие
More...
#include <obstacles.h>
◆ CircleObstacle() [1/2]
math::CircleObstacle::CircleObstacle |
( |
Point | center, |
|
|
double | radius ) |
|
inline |
Инициализирует экземпляр CircleObstacle.
- Parameters
-
center | центр круга |
radius | радиус круга |
Point center_
Definition obstacles.h:91
double radius_
Definition obstacles.h:93
◆ CircleObstacle() [2/2]
math::CircleObstacle::CircleObstacle |
( |
| ) |
|
|
inline |
◆ AddTangentPoint()
void math::CircleObstacle::AddTangentPoint |
( |
const Point & | tangent_point | ) |
|
|
inline |
76 {
78 }
std::vector< Point > tangent_points_
Definition obstacles.h:96
◆ GetCenter()
Point math::CircleObstacle::GetCenter |
( |
| ) |
const |
|
inline |
◆ GetRadius()
double math::CircleObstacle::GetRadius |
( |
| ) |
const |
|
inline |
◆ GetTangentPoints()
std::vector< Point > math::CircleObstacle::GetTangentPoints |
( |
| ) |
|
|
inline |
◆ operator!=()
85 {
86 return (
center_ != other.center_ ||
87 std::abs(
radius_ - other.radius_) >= precision);
88 }
◆ operator==()
80 {
81 return (
center_ == other.center_ &&
82 std::abs(
radius_ - other.radius_) < precision);
83 }
◆ center_
Point math::CircleObstacle::center_ |
|
private |
◆ radius_
double math::CircleObstacle::radius_ |
|
private |
◆ tangent_points_
std::vector<Point> math::CircleObstacle::tangent_points_ |
|
private |
The documentation for this class was generated from the following file: