A* Pathfinding Project  4.3.4
The A* Pathfinding Project for Unity 3D
AstarSplines Class Reference

Contains various spline functions. More...

Detailed Description

Contains various spline functions.

Static Public Member Functions

static Vector3 CatmullRom (Vector3 previous, Vector3 start, Vector3 end, Vector3 next, float elapsedTime)
 
static Vector3 CubicBezier (Vector3 p0, Vector3 p1, Vector3 p2, Vector3 p3, float t)
 Returns a point on a cubic bezier curve. More...
 
static Vector3 CubicBezierDerivative (Vector3 p0, Vector3 p1, Vector3 p2, Vector3 p3, float t)
 Returns the derivative for a point on a cubic bezier curve. More...
 
static Vector3 CubicBezierSecondDerivative (Vector3 p0, Vector3 p1, Vector3 p2, Vector3 p3, float t)
 Returns the second derivative for a point on a cubic bezier curve. More...
 

Member Function Documentation

◆ CatmullRom()

static Vector3 CatmullRom ( Vector3  previous,
Vector3  start,
Vector3  end,
Vector3  next,
float  elapsedTime 
)
static

◆ CubicBezier()

static Vector3 CubicBezier ( Vector3  p0,
Vector3  p1,
Vector3  p2,
Vector3  p3,
float  t 
)
static

Returns a point on a cubic bezier curve.

t is clamped between 0 and 1

◆ CubicBezierDerivative()

static Vector3 CubicBezierDerivative ( Vector3  p0,
Vector3  p1,
Vector3  p2,
Vector3  p3,
float  t 
)
static

Returns the derivative for a point on a cubic bezier curve.

t is clamped between 0 and 1

◆ CubicBezierSecondDerivative()

static Vector3 CubicBezierSecondDerivative ( Vector3  p0,
Vector3  p1,
Vector3  p2,
Vector3  p3,
float  t 
)
static

Returns the second derivative for a point on a cubic bezier curve.

t is clamped between 0 and 1


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