# Vector3.CubicBezier

```csharp
static Vector3 CubicBezier(in Vector3 source, in Vector3 target, in Vector3 sourceTangent, in Vector3 targetTangent, float t)
```

Calculates position of a point on a cubic beizer curve at given fraction.

### Parameters

- `in source` (`Vector3`): Point A of the curve in world space.
- `in target` (`Vector3`): Point B of the curve in world space.
- `in sourceTangent` (`Vector3`): Tangent for the Point A in world space.
- `in targetTangent` (`Vector3`): Tangent for the Point B in world space.
- `t` (`float`): How far along the path to get a point on. Range is 0 to 1, inclusive.

### Returns

`Vector3`: The point on the curve

Declared in [Vector3](/api/Vector3).
Assembly: `Sandbox.System`.
