PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...
Go to the source code of this file.
Functions | |
PT (Lens) PerspectiveLens | |
Allocates a new Lens just like this one. More... | |
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
All rights reserved.
All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."
Definition in file perspectiveLens.cxx.
PT | ( | Lens | ) |
Allocates a new Lens just like this one.
Returns true if the lens represents a linear projection (e.g. PerspectiveLens, OrthographicLens), and therefore there is a valid matrix returned by get_projection_mat(), or false otherwise. Returns true if the lens represents a perspective projection (i.e. it is a PerspectiveLens), false otherwise. This is the generic implementation, which is based on do_extrude() and assumes a linear distribution of depth values between the near and far points. Computes the complete transformation matrix from 3-d point to 2-d point, if the lens is linear.
Definition at line 23 of file perspectiveLens.cxx.