diff options
author | Emile <hanemile@protonmail.com> | 2019-02-05 21:22:37 +0100 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-02-05 21:22:37 +0100 |
commit | 8e00d33dbba2d645065ee99b681888ccd63a7e9a (patch) | |
tree | ce0b429f8706b38ad3e9d9303845c08844e7b916 | |
parent | 1d673d633168c2e19a0eccf70b435c9c2024cbd0 (diff) |
adjusted the comments to godoc standard
-rw-r--r-- | vector2D.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vector2D.go b/vector2D.go index 8c9f126..20b6ee9 100644 --- a/vector2D.go +++ b/vector2D.go @@ -18,12 +18,12 @@ func (v *Vec2) Copy() Vec2 { return Vec2{v.X, v.Y} } -// returns the product of the vector and a scalar s +// Multiply returns the product of the vector and a scalar s func (v *Vec2) Multiply(s float64) Vec2 { return Vec2{v.X * s, v.Y * s} } -// returns the sum of this vector and the vector v2 +// Add returns the sum of this vector and the vector v2 func (v1 *Vec2) Add(v2 Vec2) Vec2 { return Vec2{v1.X + v2.X, v1.Y + v2.Y} } |