#ifndef COLLIDER_H
#define COLLIDER_H
#include "model.h"
#include "tool.h"
class Collider {
public:
const Model &model;
const Tool &tool;
Collider(const Model &model, const Tool &tool):
model(model), tool(tool) { }
Real distance_to_triangle(const Triangle &triangle, const Vector3 &pos, const Vector3 &dir) const;
Real distance_to_model(const Vector3 &pos, const Vector3 &dir) const;
};
#endif