camera

package
v0.0.0-...-5ed2699 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Camera

type Camera interface {
	Ray(rnd utils.Rnd, u, v float64) *geometry.Ray
}

func NewCamera

func NewCamera(lookFrom geometry.Point3, lookAt geometry.Point3, vup geometry.Vec3, vfov float64, aspect float64, aperture float64, focusDist float64) Camera

NewCamera computes the parameters necessary for the camera...

vfov is expressed in degrees (not radians)

func UnmarshalCamera

func UnmarshalCamera(data json.RawMessage) Camera

UnmarshalJSON unmarshals JSON data into a Camera object

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL