|
| template<typename RealType > |
| TVec3< RealType > | Chaos::ToBarycentric (const TVec3< RealType > &Point, const TVec3< RealType > &V0, const TVec3< RealType > &V1, const TVec3< RealType > &V2) |
| | Convert the cartesian coordinate into a barycentric corrdinate. Compute barycentric coordinates/weights of Point inside 3D triangle (V0,V1,V2). If point is in triangle plane and inside triangle, coords will be positive and sum to 1. ie if result is a, then vPoint = a.x*V0 + a.y*V1 + a.z*V2.
|
| |
| template<typename RealType > |
| TVec3< RealType > | Chaos::FromBarycentric (const TVec3< RealType > &Barycentric, const TVec3< RealType > &V0, const TVec3< RealType > &V1, const TVec3< RealType > &V2) |
| | Convert the barycentric coordinate into a cartesian corrdinate.
|
| |
| template<typename T > |
| FChaosArchive & | Chaos::operator<< (FChaosArchive &Ar, TTriangle< T > &Value) |
| |
| template<typename T , typename ToleranceProvider = TRayTriangleIntersectionDefaultToleranceProvider<T>> |
| FORCEINLINE_DEBUGGABLE bool | Chaos::RayTriangleIntersectionAndBary (const TVec3< T > &RayStart, const TVec3< T > &RayDir, T RayLength, const TVec3< T > &A, const TVec3< T > &B, const TVec3< T > &C, T &OutT, TVec2< T > &OutBary, TVec3< T > &OutN) |
| |
| template<typename T > |
| FORCEINLINE bool | Chaos::RayTriangleIntersection (const TVec3< T > &RayStart, const TVec3< T > &RayDir, T RayLength, const TVec3< T > &A, const TVec3< T > &B, const TVec3< T > &C, T &OutT, TVec3< T > &OutN) |
| |