Skip to content

@bvdmitri/web360 / View

Interface: View ​

Defined in: web360/src/views.ts:19

Where a flat picture of a 360 frame looks and how wide its lens is, in degrees.

Remarks ​

pan turns right, tilt looks up and roll leans the top of the picture to the right, applied in that order. fov is the angle across the picture's longer side, from 30 to 160. distance, from 0 to 1, steps the virtual camera back from the sphere's centre: 0 is a flat (rectilinear) lens and 1 a stereographic one, which at a wide fov looking down is a tiny planet. Tilt is held to plus or minus 90 and roll to plus or minus 180.

Properties ​

distance ​

readonly distance: number

Defined in: web360/src/views.ts:24


fov ​

readonly fov: number

Defined in: web360/src/views.ts:23


pan ​

readonly pan: number

Defined in: web360/src/views.ts:20


roll ​

readonly roll: number

Defined in: web360/src/views.ts:22


tilt ​

readonly tilt: number

Defined in: web360/src/views.ts:21

Released under the MIT License.