mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-14 06:57:27 +01:00
22 lines
254 B
Go
22 lines
254 B
Go
package main
|
|
|
|
func Foo() vec2 {
|
|
x := Float() * Int()
|
|
y := Int() * Float()
|
|
return vec2(x, y)
|
|
}
|
|
|
|
func Foo2() vec2 {
|
|
var x = Float() * Int()
|
|
var y = Int() * Float()
|
|
return vec2(x, y)
|
|
}
|
|
|
|
func Float() float {
|
|
return 1.0
|
|
}
|
|
|
|
func Int() int {
|
|
return 1
|
|
}
|