static Vector2 CubicBezier (in Vector2 source, in Vector2 target, in Vector2 sourceTangent, in Vector2 targetTangent, float t)

Parameters

NameTypeDescription
in source Vector2 Point A of the curve.
in target Vector2 Point B of the curve.
in sourceTangent Vector2 Tangent for the Point A.
in targetTangent Vector2 Tangent for the Point B.
t float How far along the path to get a point on. Range is 0 to 1, inclusive.

Returns

TypeDescription
Vector2 The point on the curve
Declared in Vector2 ยท Assembly Sandbox.System
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.