refactor ImGUI code files

This commit is contained in:
2022-02-10 19:58:51 +08:00
parent bb33972616
commit 06cd549eb7
13 changed files with 172 additions and 50 deletions

View File

@ -61,6 +61,10 @@ func (v Vec2f) Addv(x, y float32) Vec2f {
return Vec2f{v[0] + x, v[1] + y}
}
func (v Vec2f) Multiply(x float32) Vec2f {
return Vec2f{v[0] * x, v[1] * x}
}
func (v Vec2f) Floor() Vec2i {
return Vec2i{
int(math.Floor(float64(v[0]))),