cartesianToIsometric() Function Reference

cartesianToIsometric(decimal x, decimal y)

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


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

	-- Get the cartesian of a tile
	local cartPlot = tileToCartesian(2, 1)

	-- Convert it to an isometric
	print("Isometric co-ordinate: " .. qiso.cartesianToIsometric(cartPlot.x, cartPlot.y))