Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
gop / usr / lib / gop / cl / internal / spx / pkg / pkg.go
Size: Mime:
package pkg

const (
	GopPackage = true
)

type Vector struct {
	X int
	Y int
}

func NewVector(x, y int) *Vector {
	return &Vector{x, y}
}

func (v *Vector) Add__0(x int, y int) {
	v.X += x
	v.Y += y
}

func (v *Vector) Add__1(o *Vector) {
	v.Add__0(o.X, o.Y)
}

func (v *Vector) Self() *Vector {
	return v
}