cams

package
v0.0.0-...-770e587 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2018 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCams

func CreateCams(pathFile, leftOutput, rightOutput string,
	numberOfInterpolations int, scaleX, scaleY, camBoreSpacing, maxCamRadius, rp float64) error

func GetCamCenters

func GetCamCenters(path []Coordinate, rp, camBoreSpacing, maxCamRadius float64) (Coordinate, Coordinate)

iteratively find where the cam centers should be to give the correct maxCamRadius

func WriteCam

func WriteCam(path []Coordinate, outputFile string) error

Types

type Coordinate

type Coordinate struct {
	X, Y float64
}

func ConvertCoord

func ConvertCoord(target, camCenter Coordinate, n, i int, rp float64, right bool) Coordinate

n- total number of coordinates i- index of this coordinate right- is this the right cam?

func GetCams

func GetCams(
	path []Coordinate, leftCamCenter, rightCamCenter Coordinate, rp float64) (
	left, right []Coordinate)

func Interpolate

func Interpolate(path []Coordinate, n int) []Coordinate

func ReadCoordsCsv

func ReadCoordsCsv(csvFile string) ([]Coordinate, error)

func Scale

func Scale(path []Coordinate, sx, sy float64) []Coordinate

Jump to

Keyboard shortcuts

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