class

Galaxy::Camera

Inherits Reference < Object

Constructors

new(target : Vector, distance : Float64, yaw : Float64, pitch : Float64, width : Float64, height : Float64, up_hint : Vector | Nil = nil)
Source

Instance methods

distance
Source
focal
Source
forward
Source
height
Source
near
Source
position
Source
project(position : Vector) : Projection | Nil

Subtract the local origin before projection to preserve planetary detail.

Source
project_relative(relative : Vector) : Projection | Nil
Source
ray(x : Float64, y : Float64) : Vector
Source
right
Source
target
Source
visible?(projection : Projection, margin = 20.0) : Bool
Source
width
Source