diff options
Diffstat (limited to 'libdimensionxx/camera.cpp')
-rw-r--r-- | libdimensionxx/camera.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libdimensionxx/camera.cpp b/libdimensionxx/camera.cpp index a5f894a..2897dac 100644 --- a/libdimensionxx/camera.cpp +++ b/libdimensionxx/camera.cpp @@ -49,6 +49,12 @@ namespace Dimension : m_camera(camera) { } + Line + Camera::ray(const Canvas& canvas, unsigned int x, unsigned int y) + { + return Line(m_camera->ray_fn(m_camera, canvas.dmnsn(), x, y)); + } + // Custom camera callbacks namespace { dmnsn_line |