isometricToCartesian() Function Reference

isometricToCartesian(decimal x, decimal y)

Converts an isometric co-ordinate into a cartesian co-ordinate.


	local qiso = require "plugin.qisoengine"
	qiso.setAssetsFolder("assets")
	qiso.loadTiledMap("sample-tilemap")

	-- Get the isometric of a tile
	local isoPlot = tileToIsometric(2, 1)

	-- Convert it to a cartesian
	print("Cartesian co-ordinate: " .. qiso.isometricToCartesian(isoPlot.x, isoPlot.y))