@rithgroove
Could you explain a bit how is the logic behind the drawing on the canvas?
I ask because I want to (1) remove some boilerplaite code
e.g.:
x = (node.coordinate.lon - self.canvasOrigin[0]) * self.scale + self.viewPort[0]
y = (self.canvasSize[1]-( node.coordinate.lat - self.canvasOrigin[1])) * self.scale + self.viewPort[1]
(2) add something similar to a camera, where we apply all transformations to the camera instead of applying to every object that we draw
@rithgroove
Could you explain a bit how is the logic behind the drawing on the canvas?
I ask because I want to (1) remove some boilerplaite code
e.g.:
(2) add something similar to a camera, where we apply all transformations to the camera instead of applying to every object that we draw