func (v Vec2i) IsNil() bool {
	if v.X == 0 && v.Y == 0 {
		return true
	}
	return false
}
IsNil returns true if all values are 0 (uninitialized).
package evec
import "github.com/goki/mat32"
type Vec2i struct {
	X int
	Y int
}
func NewVec2i(x, y int) Vec2i {
	return Vec2i{X: x, Y: y}
}
func NewVec2iScalar(s int) Vec2i {
	return Vec2i{X: s, Y: s}
}
func NewVec2iFmVec2Round(v mat32.Vec2) Vec2i {
	return Vec2i{int(mat32.Round(v.X)), int(mat32.Round(v.Y))}
}
func NewVec2iFmVec2Floor(v mat32.Vec2) Vec2i {
	return Vec2i{int(mat32.Floor(v.X)), int(mat32.Floor(v.Y))}
}
func NewVec2iFmVec2Ceil(v mat32.Vec2) Vec2i {
	return Vec2i{X: int(mat32.Ceil(v.X)), Y: int(mat32.Ceil(v.Y))}
}
func (v Vec2i) ToVec2() mat32.Vec2 {
	return mat32.Vec2{X: float32(v.X), Y: float32(v.Y)}
}