CameraConfiguration

data class CameraConfiguration(val initialPosition: Float = 0.0f, val zoomSensitivity: Float = 2.0f, val zoomAnimationDuration: Long = 600, val scaleSensitivity: Float = 0.3f, val rotationSensitivity: Float = 1.0E-4f, val moveSensitivity: Float = 1.0E-4f, val is2D: Boolean = true, val far: Float = 1000.0f, val near: Float = 0.1f, val focusDistance: Float = 24.0f, val cameraMinX: Float = -30.0f, val cameraMinY: Float = -30.0f, val cameraMaxX: Float = 40.0f, val cameraMaxY: Float = 40.0f, val cameraMinZoom: Float = 10.0f, val cameraMaxZoom: Float = 50.0f, val isoInitialValueX: Float = 40.0f, val isoInitialValueY: Float = -30f)

This is the Camera class that holds the camera properties of the 3D scene in the Indoor Navigation Engine. all the properties are optional and have default values, so you can create a camera with the default values or you can pass the properties you want to change

Constructors

Link copied to clipboard
constructor(initialPosition: Float = 0.0f, zoomSensitivity: Float = 2.0f, zoomAnimationDuration: Long = 600, scaleSensitivity: Float = 0.3f, rotationSensitivity: Float = 1.0E-4f, moveSensitivity: Float = 1.0E-4f, is2D: Boolean = true, far: Float = 1000.0f, near: Float = 0.1f, focusDistance: Float = 24.0f, cameraMinX: Float = -30.0f, cameraMinY: Float = -30.0f, cameraMaxX: Float = 40.0f, cameraMaxY: Float = 40.0f, cameraMinZoom: Float = 10.0f, cameraMaxZoom: Float = 50.0f, isoInitialValueX: Float = 40.0f, isoInitialValueY: Float = -30f)

Create empty Camera data class with default values

Properties

Link copied to clipboard
val cameraMaxX: Float = 40.0f

: the maximum x position of the camera (default is 0.0f) takes a Float

Link copied to clipboard
val cameraMaxY: Float = 40.0f

: the maximum y position of the camera (default is 0.0f) takes a Float

Link copied to clipboard
val cameraMaxZoom: Float = 50.0f

: the maximum z position of the camera (default is 0.0f) takes a Float

Link copied to clipboard

: the minimum x position of the camera (default is 0.0f) takes a Float

Link copied to clipboard

: the minimum y position of the camera (default is 0.0f) takes a Float

Link copied to clipboard
val cameraMinZoom: Float = 10.0f

: the minimum z position of the camera (default is 0.0f) takes a Float

Link copied to clipboard
val far: Float = 1000.0f

: the far distance of the camera that the camera can render 3D objects (default is 1000.0f) takes a Float

Link copied to clipboard
val focusDistance: Float = 24.0f

: the focus distance of the camera (default is 24.0f) takes a Float

Link copied to clipboard
Link copied to clipboard
val is2D: Boolean = true

: a boolean that indicates if the scene is 2D or 3D (default is true) takes a Boolean

Link copied to clipboard
val isoInitialValueX: Float = 40.0f
Link copied to clipboard
Link copied to clipboard
val moveSensitivity: Float = 1.0E-4f

: the speed of the movement of the camera inside the scene when move (default is 0.1f) takes a Float

Link copied to clipboard
val near: Float = 0.1f

: the near distance of the camera that the camera can render 3D objects (default is 0.1f) takes a Float

Link copied to clipboard
val rotationSensitivity: Float = 1.0E-4f

: the speed of the rotation of the camera inside the scene when rotate (default is 0.1f) takes a Float

Link copied to clipboard

: the speed of the scale of the camera inside the scene when scale (default is 0.1f) takes a Float

Link copied to clipboard

: the duration of the zoom animation of the camera inside the scene when double tap (default is 600) takes a Long

Link copied to clipboard

: the speed of the zoom in of the camera inside the scene when double tap (default is 0.2f) takes a Float