func (p Pos) Vec3() mgl64.Vec3 {
	return mgl64.Vec3{float64(p[0]), float64(p[1]), float64(p[2])}
}
Vec3 returns a vec3 holding the same coordinates as the block position.
package cube
import (
	"github.com/go-gl/mathgl/mgl64"
	"math"
)
const (
	MaxY = 255
	MinY = 0
)
type Pos [3]int
func (p Pos) X() int {
	return p[0]
}
func (p Pos) Y() int {
	return p[1]
}
func (p Pos) Z() int {
	return p[2]
}
func (p Pos) OutOfBounds() bool {
	y := p[1]
	return y > MaxY || y < MinY
}
func (p Pos) Add(pos Pos) Pos {
	return Pos{p[0] + pos[0], p[1] + pos[1], p[2] + pos[2]}
}
func (p Pos) Subtract(pos Pos) Pos {
	return Pos{p[0] - pos[0], p[1] - pos[1], p[2] - pos[2]}
}