isometric

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Closer

func Closer(a, b shapes.Point) bool

func FromOrthographic

func FromOrthographic(location shapes.Point, tileSize shapes.Point) (screen shapes.Point)

FromOrthographic make isometric point from orthographic

func FromOrthographicWithStaticSize

func FromOrthographicWithStaticSize(p shapes.Point, tileSize float64) shapes.Point

FromOrthographicWithStaticSize based on pixel calculation

func Nearness

func Nearness(p shapes.Point) float64

func PixelToScreenCoords

func PixelToScreenCoords(pixel, tileSize shapes.Point, height float64) shapes.Point

PixelToScreenCoords pixel to screen

func ProjectISO

func ProjectISO(p shapes.Point) shapes.Point

func ScreenToPixelCoords

func ScreenToPixelCoords(screen, tileSize shapes.Point, height float64) shapes.Point

ScreenToPixelCoords screen to pixel

func TileToScreenCoords

func TileToScreenCoords(pos, tileSize shapes.Point, height float64) shapes.Point

TileToScreenCoords tile to screen

func ToOrthographic

func ToOrthographic(screen shapes.Point, tileSize shapes.Point) (location shapes.Point)

ToOrthographic make orthographic point from isometric

func ToOrthographicWithStaticSize

func ToOrthographicWithStaticSize(p shapes.Point, tileSize float64) shapes.Point

ToOrthographicWithStaticSize based on pixel calculation

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL