camera

package
v0.0.0-...-4f29a8f Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ViewTransform

func ViewTransform(from, to, up geom.Tuple4) geom.Mat4x4

Types

type Camera

type Camera struct {
	Width       int
	Height      int
	Fov         float64
	Transform   geom.Mat4x4
	Inverse     geom.Mat4x4
	PixelSize   float64
	HalfWidth   float64
	HalfHeight  float64
	Aperture    float64
	FocalLength float64
}

func NewCamera

func NewCamera(width int, height int, fov float64, from geom.Tuple4, lookAt geom.Tuple4) Camera

Jump to

Keyboard shortcuts

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