Struct Triangle¶
Defined in File triangle.h
Struct Documentation¶
-
struct Triangle¶
Represents a triangle.
Public Functions
-
Triangle(const Coord &coord_a, const Coord &coord_b, const Coord &coord_c)¶
Constructs a Triangle from three Coords.
- Parameters:
coord_a[in] Coord A.
coord_b[in] Coord B.
coord_c[in] Coord C.
-
float intersect(const Ray &beam) const¶
Computes the intersection point of a Ray with this Triangle.
- Parameters:
beam[in] the Ray. point.
- Returns:
a positive float point distance or std::numeric_limits<float>::lowest if there was no intersection.
-
Triangle(const Coord &coord_a, const Coord &coord_b, const Coord &coord_c)¶