kd

package
v0.0.0-...-2abbad4 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2018 License: Unlicense Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const AXIS_X = 0
View Source
const AXIS_Y = 1
View Source
const AXIS_Z = 2
View Source
const NODETYPE_LEAF = 1
View Source
const NODETYPE_NODE = 0

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	Type int
	Axis int
	Pos  float32

	TMin mgl32.Vec3
	TMax mgl32.Vec3

	TriangleIds []int
	NumTris     int

	Children []Node
}

func CreateRootNode

func CreateRootNode(tMin mgl32.Vec3, tMax mgl32.Vec3, nodeType int, triangleIDs []int, numTriangles int) *Node

Jump to

Keyboard shortcuts

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