summaryrefslogtreecommitdiff
path: root/bezier.go
diff options
context:
space:
mode:
Diffstat (limited to 'bezier.go')
-rw-r--r--bezier.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bezier.go b/bezier.go
index 1add5c3..42e4185 100644
--- a/bezier.go
+++ b/bezier.go
@@ -33,7 +33,7 @@ func mult(U, V *mat64.Vector, Mb, Gb *mat64.Dense) float64 {
return mat64.Inner(U, m2, V)
}
-func Calc(u, v float64, p Patch) (r Vertex) {
+func (p Patch) Calc(u, v float64) (r Vertex) {
U := Vector(u)
V := Vector(v)
Mb := Matrix(mb)