aabb

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AABB

type AABB struct {
	A geometry.Point
	B geometry.Point
}

AABB represents an Axis-Aligned Bounding Box

func SurroundingBox

func SurroundingBox(aabb1, aabb2 *AABB) *AABB

SurroundingBox represents an encompassing box for two smaller AABBs

func (*AABB) Intersection

func (aabb *AABB) Intersection(ray geometry.Ray, t0, t1 float64) bool

Intersection computer the intersection of this object and a given ray if it exists

Jump to

Keyboard shortcuts

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