UxrCatmullRomSpline.Evaluate Method (Vector3, Vector3, Vector3, Vector3, Single)

Smoothly interpolates, using Catmull-Rom equations, from p1 to p2 using additional p0 and p3 points.

Namespace: UltimateXR.Animation.Splines
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public static Vector3 Evaluate(
	Vector3 p0,
	Vector3 p1,
	Vector3 p2,
	Vector3 p3,
	float t
)

Parameters

 

p0
Type: Vector3
Point 0
p1
Type: Vector3
Point 1
p2
Type: Vector3
Point 2
p3
Type: Vector3
Point 3
t
Type: System.Single
Interpolation parameter [0.0f, 1.0f]

Return Value

Type: Vector3
Interpolated point

See Also

Reference

UxrCatmullRomSpline Class
Evaluate Overload
UltimateXR.Animation.Splines Namespace