Camera

Qualified name: algan.rendering.camera.Camera

class Camera(orthographic=False, screen_distance=5, screen_scale=2.5, *args, **kwargs)[source]

Bases: Mob

Methods

coord_to_pixel

get_corner_pixels

get_ray_iterator

get_screen

get_subframe

get_subrays

move_to_make_mob_center_of_view

pixel_to_coord

project_onto_screen

project_point_onto_screen_border

retroactive_center

screen_offset

set_view_to_bounding_box

update_frame

Attributes

animation_manager

basis

The flattened 3x3 matrix representing the Mob's orientation and scale.

color

glow

location

The 3-D location of the Mob in world space.

max_opacity

normalized_basis

The Mob's basis matrix with all its row vectors normalized to unit length.

opacity

scale_coefficient

The scaling factor of the Mob along its local axes, derived from the basis.