obstacle.h

来自「多机器人路径规划算法」· C头文件 代码 · 共 39 行

H
39
字号
/* \file Obstacle.h Contains the class Obstacle. */

#ifndef __OBSTACLE_H__
#define __OBSTACLE_H__

#include "RVODef.h"

namespace RVO {
  
  /* The class defining a line segment obstacle. */
  class Obstacle
  {
  private:
    /* Constructor. Constructs an obstacle.
      \param a The first endpoint of the obstacle. 
      \param b The second endpoint of the obstacle. */
    Obstacle(const Vector2& a, const Vector2& b);
    /* Deconstructor. */
    ~Obstacle();
        
    /* The first endpoint of the obstacle. */
    Vector2 _p1;
    /* The second endpoint of the obstacle. */
    Vector2 _p2;

    /* The normal vector of the line segment obstacle. */
    Vector2 _normal;

    friend class Agent;
    friend class RoadmapVertex;
    friend class SweeplineComparator;
    friend class KDTree;
    friend class RVOSimulator;
  };
}    // RVO namespace

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?