minor change

This commit is contained in:
faiface 2016-11-19 14:21:43 +01:00
parent 6e95738aa0
commit 3763c9aa0f
1 changed files with 3 additions and 3 deletions

6
vec.go
View File

@ -67,9 +67,9 @@ func (u Vec) Unit() Vec {
return u / V(u.Len(), 0)
}
// Scaled returns a vector u multiplied by k.
func (u Vec) Scaled(k float64) Vec {
return u * V(k, 0)
// Scaled returns a vector u multiplied by c.
func (u Vec) Scaled(c float64) Vec {
return u * V(c, 0)
}
// Rotated returns a vector u rotated by the given angle in radians.