Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/UPCGLandscapeSplineData
Description
Get the index of the first interp point before a given distance. Also computes the Alpha describing how far (in [0, 1]) the sample is between the left and right points.
| Name | GetInterpPointAtDistance |
| Type | function |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Data/PCGLandscapeSplineData.h |
| Include Path | #include "Data/PCGLandscapeSplineData.h" |
| Source | /Engine/Plugins/PCG/Source/PCG/Private/Data/PCGLandscapeSplineData.cpp |
void GetInterpPointAtDistance
(
int SegmentIndex,
FVector::FReal Distance,
int32 & OutPointIndex,
bool bComputeAlpha,
FVector::FReal & OutAlpha
) const