camera

package
v0.0.0-...-9165eb6 Latest Latest
Warning

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

Go to latest
Published: May 2, 2022 License: CC0-1.0 Imports: 4 Imported by: 0

Documentation

Overview

Package camera implements a set of functions to work with cameras.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Camera

type Camera struct {
	// contains filtered or unexported fields
}

Camera represents a camera in the world.

func New

func New(lookFrom *vec3.Vec3Impl, lookAt *vec3.Vec3Impl, vup *vec3.Vec3Impl,
	vfov float64, aspect float64, aperture float64, focusDist float64, time0 float64, time1 float64) *Camera

New returns an instance of a camera.

func (*Camera) GetRay

func (c *Camera) GetRay(s float64, t float64) *ray.RayImpl

GetRay returns the ray associated for the supplied u and v.

Jump to

Keyboard shortcuts

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