Navigation
API > API/Runtime > API/Runtime/GeometryCore
Description
Calculate gradient of scalar field values fi,fj,fk defined at corners of triangle Vi,Vj,Vk and interpolated across triangle using linear basis functions. This gradient is a 3D vector lying in the plane of the triangle (or zero if field is constant).
| Name | UE::Geometry::VectorUtil::TriGradient |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/VectorUtil.h |
| Include Path | #include "VectorUtil.h" |
namespace UE
{
namespace Geometry
{
namespace VectorUtil
{
template<typename RealType>
TVector < RealType > UE::Geometry::VectorUtil::TriGradient
(
TVector < RealType > Vi,
TVector < RealType > Vj,
TVector < RealType > Vk,
RealType fi,
RealType fj,
RealType fk
)
}
}
}
gradient (3D vector) lying in plane of triangle.