Package graphics.glimpse.cameras

Cameras, defining view matrix.

Types

Link copied to clipboard
interface Camera

An interface for a camera.

Link copied to clipboard
data class FreeCamera(    val eye: Vec3,     val roll: Angle,     val pitch: Angle,     val yaw: Angle) : Camera

A freely transformed camera, defined by its eye position, and its rotations: roll, pitch, yaw.

Link copied to clipboard
data class RelativeTargetCamera(    val target: Vec3,     val distance: Float,     val longitude: Angle,     val latitude: Angle,     val upVector: Vec3 = Vec3.unitZ) : Camera

A camera pointed at the given target, and located at the given distance from it, with the given longitude and latitude angles, while preserving the defined upVector.

Link copied to clipboard
data class TargetCamera(    val eye: Vec3,     val target: Vec3,     val upVector: Vec3 = Vec3.unitZ) : Camera

A camera located in the eye position and pointed at the given target, while preserving the defined upVector.