Skip to content

Instantly share code, notes, and snippets.

@tikoyes94
tikoyes94 / bezier.py
Created December 1, 2021 00:05
Bezier curve implementation via recursive method in python
# This is an implementation of bezier curves via recursive method.
import numpy as np
def bezier(t, points):
"""
Get the point at `t` for Bezier Curve with `points` control points.
@param t curve parameter. 0 <= t <= 1
@param points control points of Bezier Curve. Type is numpy array
@returns the value at `t` of Bezier Curve.