Navigation
API > API/Runtime > API/Runtime/GeometryCore
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/VectorUtil.h |
| Include | #include "VectorUtil.h" |
namespace UE
{
namespace Geometry
{
namespace VectorUtil
{
template<typename RealType>
TVector < RealType > UE::Geometry::VectorUtil::UniformSampleTriangleBarycentricCoords
(
RealType R1,
RealType R2
)
}
}
}
Remarks
Sample uniform random barycentric coordinates on a triangle The inputs should be two random floating point numbers in the [0,1] range (See eq. 1 of 'Shape Distributions' by Osada, Funkhouser, Chazelle and Dobkin) Note the sample positions will not match those of UniformSampleTrianglePoint for the same R1, R2 values