initial commit
This commit is contained in:
parent
df7ff616f7
commit
380d77f63e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue