bernsteinp: bernsteinp

bernsteinpR Documentation

bernsteinp

Description

bernsteinp

computes matrix of bernstein polynomials of degree n at m points t in the interval 0, 1

out[i,j] = choose(n, j)*t[i]^j*(1-t[i])^(n-j) where t = seq(0, 1, length.out = m) and j in 0 .. n

this matrix can be multiplied by a n x 2 matrix of control points to yield an m x 2 matrix of m equally spaced points along the curve

Usage

bernsteinp(n, m)

Author(s)

Marcin Imielinski


mskilab/gTrack documentation built on Aug. 17, 2024, 6:10 a.m.