H3DU.exports.Camera

Back to documentation index.

new H3DU.exports.Camera(fov, nearZ, farZ)

A class for controlling the projection and view of a 3D scene, in the nature of an abstract "camera". This class uses the concept of a "camera's position", or where the camera is located in world space, as well as a "reference point", or the point in world space that the camera is looking at.

This class is considered a supplementary class to the Public Domain HTML 3D Library and is not considered part of that library.

To use this class, you must include the script "extras/camera.js"; the class is not included in the "h3du_min.js" file which makes up the HTML 3D Library. Example:

<script type="text/javascript" src="extras/camera.js"></script>

Parameters

Back to documentation index.