FVector::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/Vector.h

Include

#include "Math/Vector.h"

Source

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

Syntax

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

Remarks

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

Returns

The path length.

Parameters

Parameter

Description

ControlPoints

Array of 4 FVectors (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