Provides the interface for the camera.
Name | Type | Default Value | Description |
---|---|---|---|
fov | float | Camera frustum field of view in degree Visibility: public |
|
farClipPlane | float | 1 | Far clipping plane distance Visibility: public |
nearClipPlane | float | 0.1 | Near clipping plane distance Visibility: public |
position | float[] | 0, 0, 0 | Camera position in global space (x, y, z coordinates) Visibility: public |
targetDirection | float[] | 1, 0, 0 | Camera direction vector in global space (normalized x, y, z vector values) Visibility: public |
upDirection | float[] | 0, 1, 0 | Camera up vector in global space (normalized x, y, z vector values) Visibility: public |
Method | Description |
---|---|
adjustClipPlanes |
Adjust the camera near and far clipping planes to include the entire specified bounding box |
sap.ui.vk.threejs.PerspectiveCamera.extend |
Creates a new subclass of class sap.ui.vk.threejs.PerspectiveCamera with name
|
sap.ui.vk.threejs.PerspectiveCamera.getMetadata |
Returns a metadata object for class sap.ui.vk.threejs.PerspectiveCamera. |
update |
Updates the camera properties with width and height of viewport |
Adjust the camera near and far clipping planes to include the entire specified bounding box
Param | Type | DefaultValue | Description |
---|---|---|---|
boundingBox | THREE.Box3 |
Bounding box |
Creates a new subclass of class sap.ui.vk.threejs.PerspectiveCamera with name sClassName
and enriches it with the information contained in oClassInfo
.
oClassInfo
might contain the same kind of information as described in sap.ui.vk.PerspectiveCamera.extend.
Param | Type | DefaultValue | Description |
---|---|---|---|
sClassName | string |
Name of the class being created |
|
oClassInfo | object |
Object literal with information about the class |
|
FNMetaImpl | function |
Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class |