Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 1.09 KB

perspective-view.md

File metadata and controls

33 lines (19 loc) · 1.09 KB

geospatial

PerspectiveView Class (Experimental)

The [PerspectiveView] class is a subclass of View that creates a perspective view using classic "3D camera" view state parameters.

To render, PerspectiveView needs to be used together with a viewState with the following parameters:

  • eye (Number[3]) - The eye position in world coordinates.
  • lookAt (Number[3]) - The position being looked at.
  • up (Number[3]) - The up direction.

For more information on using View classes, consult the Views article.

Constructor

new PerspectiveView({..., fov: 45});

PerspectiveView takes the same parameters as the View superclass constructor.

Methods

Inherits all View methods.

Source

modules/core/src/views/perspective-view.js