#include "RVOSimulator2d.h"
#include "Agent2d.h"
#include "KdTree2d.h"
#include "Obstacle2d.h"
#ifdef _OPENMP
#include <omp.h>
#endif
namespace RVO2D {
RVOSimulator2D::RVOSimulator2D() : … { … }
RVOSimulator2D::RVOSimulator2D(float timeStep, float neighborDist, size_t maxNeighbors, float timeHorizon, float timeHorizonObst, float radius, float maxSpeed, const Vector2 &velocity) : … { … }
RVOSimulator2D::~RVOSimulator2D()
{ … }
size_t RVOSimulator2D::addAgent(const Vector2 &position)
{ … }
size_t RVOSimulator2D::addAgent(const Vector2 &position, float neighborDist, size_t maxNeighbors, float timeHorizon, float timeHorizonObst, float radius, float maxSpeed, const Vector2 &velocity)
{ … }
size_t RVOSimulator2D::addObstacle(const std::vector<Vector2> &vertices)
{ … }
void RVOSimulator2D::doStep()
{ … }
size_t RVOSimulator2D::getAgentAgentNeighbor(size_t agentNo, size_t neighborNo) const
{ … }
size_t RVOSimulator2D::getAgentMaxNeighbors(size_t agentNo) const
{ … }
float RVOSimulator2D::getAgentMaxSpeed(size_t agentNo) const
{ … }
float RVOSimulator2D::getAgentNeighborDist(size_t agentNo) const
{ … }
size_t RVOSimulator2D::getAgentNumAgentNeighbors(size_t agentNo) const
{ … }
size_t RVOSimulator2D::getAgentNumObstacleNeighbors(size_t agentNo) const
{ … }
size_t RVOSimulator2D::getAgentNumORCALines(size_t agentNo) const
{ … }
size_t RVOSimulator2D::getAgentObstacleNeighbor(size_t agentNo, size_t neighborNo) const
{ … }
const Line &RVOSimulator2D::getAgentORCALine(size_t agentNo, size_t lineNo) const
{ … }
const Vector2 &RVOSimulator2D::getAgentPosition(size_t agentNo) const
{ … }
const Vector2 &RVOSimulator2D::getAgentPrefVelocity(size_t agentNo) const
{ … }
float RVOSimulator2D::getAgentRadius(size_t agentNo) const
{ … }
float RVOSimulator2D::getAgentTimeHorizon(size_t agentNo) const
{ … }
float RVOSimulator2D::getAgentTimeHorizonObst(size_t agentNo) const
{ … }
const Vector2 &RVOSimulator2D::getAgentVelocity(size_t agentNo) const
{ … }
float RVOSimulator2D::getGlobalTime() const
{ … }
size_t RVOSimulator2D::getNumAgents() const
{ … }
size_t RVOSimulator2D::getNumObstacleVertices() const
{ … }
const Vector2 &RVOSimulator2D::getObstacleVertex(size_t vertexNo) const
{ … }
size_t RVOSimulator2D::getNextObstacleVertexNo(size_t vertexNo) const
{ … }
size_t RVOSimulator2D::getPrevObstacleVertexNo(size_t vertexNo) const
{ … }
float RVOSimulator2D::getTimeStep() const
{ … }
void RVOSimulator2D::processObstacles()
{ … }
bool RVOSimulator2D::queryVisibility(const Vector2 &point1, const Vector2 &point2, float radius) const
{ … }
void RVOSimulator2D::setAgentDefaults(float neighborDist, size_t maxNeighbors, float timeHorizon, float timeHorizonObst, float radius, float maxSpeed, const Vector2 &velocity)
{ … }
void RVOSimulator2D::setAgentMaxNeighbors(size_t agentNo, size_t maxNeighbors)
{ … }
void RVOSimulator2D::setAgentMaxSpeed(size_t agentNo, float maxSpeed)
{ … }
void RVOSimulator2D::setAgentNeighborDist(size_t agentNo, float neighborDist)
{ … }
void RVOSimulator2D::setAgentPosition(size_t agentNo, const Vector2 &position)
{ … }
void RVOSimulator2D::setAgentPrefVelocity(size_t agentNo, const Vector2 &prefVelocity)
{ … }
void RVOSimulator2D::setAgentRadius(size_t agentNo, float radius)
{ … }
void RVOSimulator2D::setAgentTimeHorizon(size_t agentNo, float timeHorizon)
{ … }
void RVOSimulator2D::setAgentTimeHorizonObst(size_t agentNo, float timeHorizonObst)
{ … }
void RVOSimulator2D::setAgentVelocity(size_t agentNo, const Vector2 &velocity)
{ … }
void RVOSimulator2D::setTimeStep(float timeStep)
{ … }
}