Documentation
¶
Index ¶
- func LoadEbitenImageFromFile(path string) (*ebiten.Image, error)
- func ScaleEbitenImage(image *ebiten.Image, dims Dims) *ebiten.Image
- type Dims
- type Number
- type Pos
- func (p Pos[N]) AlmostEq(other Pos[N], epsilon N) bool
- func (p Pos[N]) Eq(other Pos[N]) bool
- func (p Pos[N]) Sub(other Pos[N]) Pos[N]
- func (p Pos[N]) ToFloatPos() Pos[float64]
- func (p Pos[N]) ToIntPos() Pos[int]
- func (p Pos[N]) ToTuple() (N, N)
- func (p Pos[N]) Translate(dx, dy N) Pos[N]
- func (p Pos[N]) TranslatePos(offset Pos[N]) Pos[N]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Pos ¶
type Pos[N Number] struct { X N Y N }
func MakePosFromTuple ¶
func (Pos[N]) ToFloatPos ¶
func (Pos[N]) TranslatePos ¶
Click to show internal directories.
Click to hide internal directories.