trace

package
v0.0.0-...-21ee556 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2021 License: MIT 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 {
	// contains filtered or unexported fields
}

Ray represents a light ray with an origin and direction

func NewRay

func NewRay(origin geometry.Vector3, direction geometry.Vector3) Ray

NewRay creates a new Ray object

func (Ray) At

func (r Ray) At(distance float64) geometry.Vector3

At returns the position of the ray at a distance

func (Ray) Direction

func (r Ray) Direction() geometry.Vector3

Direction returns the direction of the current ray

func (Ray) Origin

func (r Ray) Origin() geometry.Vector3

Origin returns the origin of the current ray

Jump to

Keyboard shortcuts

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