CameraContext

- class CameraContext
This class provides viewport space conversion services.
This interface is passed to the viewport events and is implemented by the application.
Methods
Return the camera to world matrix of the event's viewport.
pixel_to_world(screen_pos, depth)Convert viewport pixel coordinates and depth in world space position.
Return the camera projection.
Return the viewport resolution.
world_to_pixel(world_pos)Convert world space position in viewport pixel coordinates and depth.
- __init__(*args, **kwargs)
- camera_to_world() Imath.M44d
Return the camera to world matrix of the event’s viewport.
- Return type
- pixel_to_world(screen_pos: Imath.V2i, depth: double) Imath.V3d
Convert viewport pixel coordinates and depth in world space position.
- Return type
- projection() Imath.M44d
Return the camera projection.
- Return type