Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
TWatertightTriangle.h
Go to the documentation of this file.
1#pragma once
2
4#include "Math/math_fwd.h"
6
7#include <Common/primitive_type.h>
8
9namespace ph::math
10{
11
12template<typename T>
13class TWatertightTriangle final : public TBasicTriangle<T>
14{
15public:
17
25 bool isIntersecting(
26 const TLineSegment<T>& segment,
27 T* out_hitT,
28 TVector3<T>* out_hitBarycentricCoords) const;
29
32 /*bool isIntersectingRefined(
33 const TLineSegment<T>& segment,
34 T* out_hitT,
35 TVector3<T>* out_hitBarycentricCoords) const;*/
36};
37
38}// end namespace ph::math
39
Basic 3-D triangle functionalities.
Definition TBasicTriangle.h:21
TBasicTriangle(TVector3< T > vA, TVector3< T > vB, TVector3< T > vC)
Definition TBasicTriangle.ipp:81
Represents a line segment in space.
Definition TLineSegment.h:25
Represents a 3-D vector.
Definition TVector3.h:17
Definition TWatertightTriangle.h:14
bool isIntersecting(const TLineSegment< T > &segment, T *out_hitT, TVector3< T > *out_hitBarycentricCoords) const
Checks whether the segment is interseting with this triangle.
Definition TWatertightTriangle.ipp:16
Math functions and utilities.
Definition TransformInfo.h:10