hittables

package
v0.0.0-...-57775aa Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HitRecord

type HitRecord struct {
	Material materials.Material
	Point    geometry.Point3
	T        float64
	// contains filtered or unexported fields
}

func (*HitRecord) FrontFace

func (hr *HitRecord) FrontFace() bool

func (*HitRecord) Normal

func (hr *HitRecord) Normal() geometry.Vec3

func (*HitRecord) SetFaceNormal

func (hr *HitRecord) SetFaceNormal(r tracer.Ray, outwardNormal geometry.Vec3)

type Hittable

type Hittable interface {
	Hit(r tracer.Ray, rayT utils.Interval) *HitRecord
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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