Provides the interface for the perspective camera.
Constructor for a new perspective camera.
Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject#constructor for a general description of the syntax of the settings object.
new sap.ui.vk.PerspectiveCamera()
Name | Type | Default Value | Description |
---|---|---|---|
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 |
---|---|
sap.ui.vk.PerspectiveCamera.extend |
Creates a new subclass of class sap.ui.vk.PerspectiveCamera with name
|
getFov |
Gets current value of property fov. Camera frustum field of view in degree |
sap.ui.vk.PerspectiveCamera.getMetadata |
Returns a metadata object for class sap.ui.vk.PerspectiveCamera. |
setFov |
Sets a new value for property fov. Camera frustum field of view in degree When called with a value of |
Creates a new subclass of class sap.ui.vk.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.Camera.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 |
Returns a metadata object for class sap.ui.vk.PerspectiveCamera.
Sets a new value for property fov.
Camera frustum field of view in degree
When called with a value of null
or undefined
, the default value of the property will be restored.
Param | Type | DefaultValue | Description |
---|---|---|---|
fFov | float |
New value for property |