VisionEgg.Core.SimplePerspectiveProjection

Package VisionEgg :: Module Core :: Class SimplePerspectiveProjection |
[frames] | no frames]

# Class SimplePerspectiveProjection

source code

             object --+
                      |
    ClassWithParameters --+
                          |
        ProjectionBaseClass --+
                              |
                     Projection --+
                                  |
                                 SimplePerspectiveProjection

    A simplified perspective projection.

    Parameters
    ==========
    matrix -- matrix specifying projection (Sequence4x4 of Real)
              Default: [[1 0 0 0]
                        [0 1 0 0]
                        [0 0 1 0]
                        [0 0 0 1]]

Instance Methods
__init__(self, fov_x=45.0, z_clip_near=0.1, z_clip_far=10000.0, aspect_ratio=4.0/3.0) | source code
Inherited from `ProjectionBaseClass`: `apply_to_gl`, `apply_to_vertex`, `apply_to_vertices`, `clip_2_norm_device`, `eye_2_clip`, `eye_2_norm_device`, `get_matrix`, `look_at`, `push_and_set_gl_projection`, `rotate`, `scale`, `set_gl_modelview`, `set_gl_projection`, `stateless_rotate`, `stateless_scale`, `stateless_translate`, `translate` Inherited from `ClassWithParameters`: `__getstate__`, `__setstate__`, `get_specified_type`, `is_constant_parameter`, `set`, `verify_parameters` Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__`

Class Variables
Inherited from `ProjectionBaseClass`: `parameters_and_defaults` Inherited from `ClassWithParameters`: `__safe_for_unpickling__`, `constant_parameters_and_defaults`

Properties
Inherited from `object`: `__class__`

Method Details

### __init__(self, fov_x=45.0, z_clip_near=0.1, z_clip_far=10000.0, aspect_ratio=4.0/3.0) (Constructor) | source code
Overrides: Projection.__init__