Initial commit
This commit is contained in:
commit
f26c478727
18 changed files with 621 additions and 0 deletions
11
math/position.go
Normal file
11
math/position.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
package math
|
||||
|
||||
type Position Vec2f
|
||||
|
||||
func (p *Position) Set(v Vec2f) {
|
||||
*p = Position(v)
|
||||
}
|
||||
|
||||
func (p Position) Get() Vec2f {
|
||||
return Vec2f(p)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue