This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. |