|
|
|
@ -66,6 +66,9 @@ class Ray {
|
|
|
|
|
float dist(Punkt3D p) const;
|
|
|
|
|
float getParam(Punkt3D p, bool onray=false) const;
|
|
|
|
|
|
|
|
|
|
int getIntersectionParam(const Ray &ray, float *param1, float *param2);
|
|
|
|
|
int getIntersectionParam(const Ray &ray, segl::Punkt3D *a, segl::Punkt3D *b);
|
|
|
|
|
|
|
|
|
|
bool collision(const Sphere &s) const;
|
|
|
|
|
bool collision(const Ray &r) const;
|
|
|
|
|
bool collision(const Box & b) const;
|
|
|
|
|