primitive

package
v0.0.0-...-77601ef Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Primitive

type Primitive interface {
	Intersection(geometry.Ray, float64, float64, *rand.Rand) (*material.RayHit, bool)
	BoundingBox(float64, float64) (*aabb.AABB, bool)
	SetMaterial(material.Material)
	IsInfinite() bool
	IsClosed() bool
	Copy() Primitive
}

Primitive represents a geometry object with a material in 3D space in the scene

Jump to

Keyboard shortcuts

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