Hermes
|
Set of geometric predicates. More...
Static Public Member Functions | |
static Result< real_t > | intersect (const hermes::Line2 &line, const ray2 &ray) |
Intersects a line by a ray. More... | |
static Result< real_t > | intersect (const hermes::bbox3 &bounds, const ray3 &ray, const hermes::vec3 &inv_dir, const i32 dir_is_neg[3], real_t max_t=Constants::real_infinity) |
static Result< real_t > | intersect (const hermes::bbox3 &bounds, const ray3 &ray, real_t *second_hit=nullptr) |
static Result< real_t > | intersect (const point3 &p1, const point3 &p2, const point3 &p3, const Ray3 &ray, real_t *b1=nullptr, real_t *b2=nullptr) |
static Result< real_t > | intersect (const Plane &plane, const Ray3 &ray) |
Set of geometric predicates.
|
static |
bounds | |
ray | |
inv_dir | |
dir_is_neg | |
max_t |
|
static |
bounds | |
ray | |
second_hit |
|
static |
Intersects a line by a ray.
line | |
ray |
|
static |
plane | |
ray |
|
static |
BBox / Ray3 intersection test. b1 and b2, if not null, receive the barycentric coordinates of the intersection point.
p1 | [in] first triangle's vertex |
p2 | [in] second triangle's vertex |
p3 | [in] third triangle's vertex |
ray | [in] |
tHit | [out] intersection (parametric coordinate) |
b1 | [out] barycentric coordinate |
b2 | [out] barycentric coordinate return true if intersection exists |