geo

package
v0.0.0-...-62b3f6d Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ray

type Ray struct {
	Origin    r3.Vector
	Direction r3.Vector
}

A parametrized curve (in our case, a straight line) which starts from an origin with direction in R3.

func (Ray) At

func (r Ray) At(t float64) r3.Vector

At returns the vector (at t) in R3 for a ray parametrized by r = a + tb, where a is `r.Origin` and b is `r.Direction`.

Jump to

Keyboard shortcuts

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