Navigation
Unreal Engine C++ API Reference > Runtime > Core > Math
Inheritance Hierarchy
- FInterpCurve
- FInterpCurveFloat
- FInterpCurveLinearColor
- FInterpCurveQuat
- FInterpCurveTwoVectors
- FInterpCurveVector
- FInterpCurveVector2D
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Math/InterpCurve.h |
Include | #include "Math/InterpCurve.h" |
Syntax
template<class T>
class FInterpCurve
Remarks
Template for interpolation curves.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
bool | bIsLooped | Specify whether the curve is looped or not |
![]() |
float | LoopKeyOffset | Specify the offset from the last point's input key corresponding to the loop point |
![]() |
TArray< FInterpCurvePoint< T > > | Points | Holds the collection of interpolation points. |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FInterpCurve () |
Default constructor. |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
int32 | AddPoint
(
const float InVal, |
Adds a new keypoint to the InterpCurve with the supplied In and Out value. |
![]() |
void | AutoSetTangents
(
float Tension, |
Automatically set the tangents on the curve based on surrounding points |
![]() ![]() |
void | CalcBounds
(
T& OutMin, |
Calculate the min/max out value that can be returned by this InterpCurve. |
![]() |
void | ClearLoopKey () |
Clear loop key for curve |
![]() ![]() |
T | Eval
(
const float InVal, |
Evaluate the output for an arbitary input value. |
![]() ![]() |
T | EvalDerivative
(
const float InVal, |
Evaluate the derivative at a point on the curve. |
![]() ![]() |
T | EvalSecondDerivative
(
const float InVal, |
Evaluate the second derivative at a point on the curve. |
![]() ![]() |
float | FindNearest
(
const T& PointInSpace, |
Find the nearest point on spline to the given point. |
![]() ![]() |
float | FindNearest
(
const T& PointInSpace, |
Find the nearest point on spline to the given point. |
![]() ![]() |
float | FindNearestOnSegment
(
const T& PointInSpace, |
Find the nearest point (to the given point) on segment between Points[PtIdx] and Points[PtIdx+1] |
![]() ![]() |
int32 | GetPointIndexForInputValue
(
const float InValue |
Finds the lower index of the two points whose input values bound the supplied input value. |
![]() |
int32 | MovePoint
(
int32 PointIndex, |
Moves a keypoint to a new In value. |
![]() |
void | Reset () |
Clears all keypoints from InterpCurve. |
![]() |
void | SetLoopKey
(
float InLoopKey |
Set loop key for curve |
Deprecated Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
float | InaccurateFindNearest
(
const T& PointInSpace, |
Use FindNearest instead. |
![]() ![]() |
float | InaccurateFindNearest
(
const T& PointInSpace, |
Use FindNearest instead. |
![]() ![]() |
float | InaccurateFindNearestOnSegment
(
const T& PointInSpace, |
Use FindNearestOnSegment instead. |