Euphoria
|
intersection.h
Go to the documentation of this file.
76 get_intersection(const Sphere& lhs, const vec3f& lhs_center, const Sphere& rhs, const vec3f& rhs_center);
Definition: argparse.cc:45
bool contains_point(const Sphere &sphere, const vec3f &sphere_center, const vec3f &point)
Definition: intersection.cc:246
vec3f get_closest_point(const Plane &plane, const vec3f &point)
Definition: intersection.cc:189
float get_distance_between(const Plane &plane, const vec3f &p)
Definition: intersection.cc:179
bool is_point_in_triangle(const vec2f &a, const vec2f &b, const vec2f &c, const vec2f &p)
Definition: intersection.cc:328
std::optional< float > get_intersection_ray_triangle(const UnitRay3f &ray, const vec3f &v0, const vec3f &v1, const vec3f &v2)
This implements the Möller–Trumbore intersection algorithm.
Definition: intersection.cc:352
std::optional< float > get_intersection(const UnitRay3f &ray, const CollisionMesh &mesh)
Definition: collisionmesh.cc:39
Definition: assert.h:90
Definition: intersection.h:138
Definition: intersection.h:149