FCV Engine 0.1
A tool and framework for tutorials in game development
Loading...
Searching...
No Matches
PointLerp Class Reference

A utility class to perform linear interpolation (lerping) between an array of Vector3 points. More...

Static Public Member Functions

static Vector3 LerpPoints (Vector3[] points, float t)
 Returns a lerped position between an array of Vector3 points using a value between 0 and 1.
 

Detailed Description

A utility class to perform linear interpolation (lerping) between an array of Vector3 points.

Definition at line 8 of file PointLerp.cs.

Member Function Documentation

◆ LerpPoints()

static Vector3 LerpPoints ( Vector3[] points,
float t )
static

Returns a lerped position between an array of Vector3 points using a value between 0 and 1.

Parameters
pointsAn array of Vector3 points to interpolate between.
tA float value between 0 and 1 representing the interpolation factor.
Returns
The interpolated Vector3 position between the points.

Definition at line 16 of file PointLerp.cs.


The documentation for this class was generated from the following file: