Hermes
|
Static Public Member Functions | |
static point3 | closestPoint (const bbox3 &box, const point3 &p) |
static bool | intersect (const Plane &pl, const Line &l, point3 &p) |
static bool | intersect (const Sphere &s, const Line &l, point3 &p1, point3 &p2) |
intersection test More... | |
static bool | intersect (const bbox2 &box, const Ray2 &ray, real_t &hit1, real_t &hit2, real_t *normal=nullptr) |
intersection test More... | |
static bool | intersect (const bbox3 &box, const Ray3 &ray, real_t &hit1, real_t &hit2) |
intersection test More... | |
static bool | intersect (const bbox3 &box, const Ray3 &ray, real_t &hit1) |
intersection test More... | |
static bool | intersect (const hermes::Line2 &line, const ray2 &ray) |
Intersects a line by a ray. More... | |
box | |
p |
|
static |
intersection test
box | [in] |
ray | [in] |
hit1 | [out] first intersection |
hit2 | [out] second intersection |
normal | [out | optional] collision normal |
bbox2D / Ray intersection test.
hit1 and hit2 are in the ray's parametric coordinate.
hit1 = hit2 if a single point is found.
/return true if intersectiton exists
|
static |
intersection test
box | [in] |
ray | [in] |
hit1 | [out] closest intersection |
BBox / Ray3 intersection test. Computes the closest intersection from the ray's origin.
hit1 in in the ray's parametric coordinate.
/return true if intersection exists
|
static |
intersection test
box | [in] |
ray | [in] |
hit1 | [out] first intersection |
hit2 | [out] second intersection |
BBox / Ray3 intersection test.
hit1 and hit2 are in the ray's parametric coordinate.
hit1 = hit2 if a single point is found.
/return true if intersectiton exists
|
static |
Intersects a line by a ray.
line | |
ray |
pl | |
l | |
p |