triangle

package
v0.0.0-...-e416b65 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const MaxJ = 10

Variables

This section is empty.

Functions

func AllTriangleDots

func AllTriangleDots(a, b, c Point, scale int64, vol SpaceSetter, color uint16)

func DotInPlane

func DotInPlane(p, a, b, c Point, r int64) bool

func DotInTriangle

func DotInTriangle(p, a, b, c Point, r int64) bool

func MeshVolume

func MeshVolume(triangles []Triangle, scale int64) (res int64)

func ScalarProduct

func ScalarProduct(a, b Vector) (s *big.Int)

Types

type Cube

type Cube [2]Point

type Line

type Line [2]Point

type Point

type Point [3]int64

func AddDot

func AddDot(a, b, c Point, scale int64, vol SpaceSetter, i0, i1 int64, j0, j1 uint, last1 Point, color uint16) Point

type SpaceSetter

type SpaceSetter interface {
	Set16(node g3.Node, val uint16)
}

type Triangle

type Triangle [3]Point

type Vector

type Vector [3]int64

func NewVector

func NewVector(p1, p2 Point) Vector

func VectorProduct

func VectorProduct(a, b Vector) Vector

Jump to

Keyboard shortcuts

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