initial commit

This commit is contained in:
Jakub Dóka 2020-11-04 21:25:50 +01:00
parent df7ff616f7
commit 380d77f63e
1 changed files with 0 additions and 1 deletions

View File

@ -1153,7 +1153,6 @@ func Constant(constant Vec) *Bezier {
// You can of course pass any value though its really hard to // You can of course pass any value though its really hard to
// predict what value will it return // predict what value will it return
func (b *Bezier) Point(t float64) Vec { func (b *Bezier) Point(t float64) Vec {
/* Formula from Wikipedia article on Bézier curves. */
if b.redundant || b.Start == b.End { if b.redundant || b.Start == b.End {
b.redundant = true b.redundant = true
return b.Start return b.Start