Bases: collada.camera.Camera
Perspective camera as defined in COLLADA tag <perspective>.
Create a new perspective camera.
Note: aspect_ratio = tan(0.5*xfov) / tan(0.5*yfov)
Any other combination will raise collada.DaeMalformedError
Parameters: |
|
---|
Methods
__init__(id, znear, zfar[, xfov, yfov, ...]) | Create a new perspective camera. |
bind(matrix) | Create a bound camera of itself based on a transform matrix. |
load(collada, localscope, node) | |
save() | Saves the perspective camera’s properties back to xmlnode |
Identifier for the camera
Horizontal field of view, in degrees
Vertical field of view, in degrees
Aspect ratio of the field of view
Distance to the near clipping plane
Distance to the far clipping plane
ElementTree representation of the data.
Saves the perspective camera’s properties back to xmlnode
Create a bound camera of itself based on a transform matrix.
Parameters: | matrix (numpy.array) – A numpy transformation matrix of size 4x4 |
---|---|
Return type: | collada.camera.BoundPerspectiveCamera |