Path: blob/master/thirdparty/rvo2/rvo2_2d/Obstacle2d.h
9903 views
/*1* Obstacle2d.h2* RVO2 Library3*4* Copyright 2008 University of North Carolina at Chapel Hill5*6* Licensed under the Apache License, Version 2.0 (the "License");7* you may not use this file except in compliance with the License.8* You may obtain a copy of the License at9*10* http://www.apache.org/licenses/LICENSE-2.011*12* Unless required by applicable law or agreed to in writing, software13* distributed under the License is distributed on an "AS IS" BASIS,14* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.15* See the License for the specific language governing permissions and16* limitations under the License.17*18* Please send all bug reports to <[email protected]>.19*20* The authors may be contacted via:21*22* Jur van den Berg, Stephen J. Guy, Jamie Snape, Ming C. Lin, Dinesh Manocha23* Dept. of Computer Science24* 201 S. Columbia St.25* Frederick P. Brooks, Jr. Computer Science Bldg.26* Chapel Hill, N.C. 27599-317527* United States of America28*29* <http://gamma.cs.unc.edu/RVO2/>30*/3132#ifndef RVO2D_OBSTACLE_H_33#define RVO2D_OBSTACLE_H_3435/**36* \file Obstacle2d.h37* \brief Contains the Obstacle class.38*/3940#include "Definitions.h"4142namespace RVO2D {43/**44* \brief Defines static obstacles in the simulation.45*/46class Obstacle2D {47public:48/**49* \brief Constructs a static obstacle instance.50*/51Obstacle2D();5253bool isConvex_;54Obstacle2D *nextObstacle_;55Vector2 point_;56Obstacle2D *prevObstacle_;57Vector2 unitDir_;5859float height_ = 1.0;60float elevation_ = 0.0;61uint32_t avoidance_layers_ = 1;6263size_t id_;6465friend class Agent2D;66friend class KdTree2D;67friend class RVOSimulator2D;68};69}7071#endif /* RVO2D_OBSTACLE_H_ */727374