mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-27 04:08:53 +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
|
|
}
|