raysect / source

The main source repository for the Raysect project.
http://www.raysect.org
BSD 3-Clause "New" or "Revised" License
88 stars 23 forks source link

Extract origin/direction from VectorCamera #252

Closed shenders closed 5 years ago

shenders commented 5 years ago

@mattngc

The VectorCamera class does not return the input pixel origin/direction which could be a useful output when using the data from VectorCamera at a different stage in the code. Could these two variables be added to the class such that:

camera=VectorCamera(pixel_origin,pixel_direction)

print(camera.pixel_origin,camera.pixel_direction)

mattngc commented 5 years ago

This sounds like a sensible change. I will make the respective properties readonly.