Navigation
API > API/Runtime > API/Runtime/GeometryCore
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TVector< RealType > UE::Geometry::VectorUtil::UniformSampleTrianglePoint
(
RealType R1, |
Sample a uniform random point on a triangle The inputs should be two random floating point numbers in the [0,1] range, and the triangle coordinates ref: http://mathworld.wolfram.com/TrianglePointPicking.html Note the sample positions will not match those of UniformSampleTriangleBarycentricCoords for the same R1, R2 values | VectorUtil.h | |
TVector2< RealType > UE::Geometry::VectorUtil::UniformSampleTrianglePoint
(
RealType R1, |
Sample a uniform random point on a 2D triangle The inputs should be two random floating point numbers in the [0,1] range, and the triangle coordinates ref: http://mathworld.wolfram.com/TrianglePointPicking.html Note the sample positions will not match those of UniformSampleTriangleBarycentricCoords for the same R1, R2 values | VectorUtil.h |
UE::Geometry::VectorUtil::UniformSampleTrianglePoint(RealType, RealType, const TVector< RealType > &, const TVector< RealType > &, const TVector< RealType > &)
Description
Sample a uniform random point on a triangle The inputs should be two random floating point numbers in the [0,1] range, and the triangle coordinates ref: http://mathworld.wolfram.com/TrianglePointPicking.html Note the sample positions will not match those of UniformSampleTriangleBarycentricCoords for the same R1, R2 values
| Name | UE::Geometry::VectorUtil::UniformSampleTrianglePoint |
| 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::UniformSampleTrianglePoint
(
RealType R1,
RealType R2,
const TVector < RealType > & A,
const TVector < RealType > & B,
const TVector < RealType > & C
)
}
}
}
UE::Geometry::VectorUtil::UniformSampleTrianglePoint(RealType, RealType, const TVector2< RealType > &, const TVector2< RealType > &, const TVector2< RealType > &)
Description
Sample a uniform random point on a 2D triangle The inputs should be two random floating point numbers in the [0,1] range, and the triangle coordinates ref: http://mathworld.wolfram.com/TrianglePointPicking.html Note the sample positions will not match those of UniformSampleTriangleBarycentricCoords for the same R1, R2 values
| Name | UE::Geometry::VectorUtil::UniformSampleTrianglePoint |
| 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>
TVector2 < RealType > UE::Geometry::VectorUtil::UniformSampleTrianglePoint
(
RealType R1,
RealType R2,
const TVector2 < RealType > & A,
const TVector2 < RealType > & B,
const TVector2 < RealType > & C
)
}
}
}