Camera

data class Camera(val position: Point, val distance: Double)

Defines the perspective a viewer has if they are assumed to be looking directly at the screen. A camera placed farther from a View will create a stronger perspective projection of that View. This will result in the View looking more 3-dimensional when it is transformed "into" the screen in some way. Whether using the z-axis or because of rotations around the x and/or y-axis.

Constructors

Link copied to clipboard
constructor(position: Point, distance: Double)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

from the coordinate surface of the camera

Link copied to clipboard

in the coordinate space where the camera center is pointed

Link copied to clipboard

The transform this Camera will apply to objects "seen" through it. This is helpful when trying to compute the location of a point in the "world" from the Camera's perspective.