toCanvasPoint

fnVec2 toCanvasPoint(Vec2 point, Camera camera)

Converts a scene point to a canvas point using the given camera and resolution.

fnVec2 toCanvasPoint(Vec2 point, Camera camera, Vec2 canvasSize)

Converts a scene point to a canvas point using the given camera and canvas size.