FLinearColor::EvaluateBezier

Generates a list of sample points on a Bezier curve defined by 2 points.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Math/Color.h

Include

#include "Math/Color.h"

Source

/Engine/Source/Runtime/Core/Private/Math/UnrealMath.cpp

Syntax

static float EvaluateBezier
(
    const FLinearColor * ControlPoints,
    int32 NumPoints,
    TArray< FLinearColor > & OutPoints
)

Remarks

Generates a list of sample points on a Bezier curve defined by 2 points.

Returns

Path length.

Parameters

Parameter

Description

ControlPoints

Array of 4 Linear Colors (vert1, controlpoint1, controlpoint2, vert2).

NumPoints

Number of samples.

OutPoints

Receives the output samples.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss