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