Viewpoint

data class Viewpoint(val eye: Position, val target: Position, val up: Direction = Direction.Up)

Where a camera is and what it looks at: the value CameraState.viewpoint reads and writes, and what CameraState.animateTo flies to. With an orbit controller, target is the point it orbits; with a map one, the ground point under the eye.

A plain value: keep viewpoints in constants or state, compare them, and save them with Saver.

Constructors

Link copied to clipboard
constructor(eye: Position, target: Position, up: Direction = Direction.Up)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard