hyperrectangle

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2022 License: Apache-2.0 Imports: 2 Imported by: 26

Documentation

Overview

Package hyperrectangle defines an N-dimensional box embedded in N-dimensional ambient space.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type R

type R struct {
	// contains filtered or unexported fields
}

func New

func New(v vector.V, u vector.V) *R

func (R) D

func (r R) D() vector.V

func (R) In

func (r R) In(v vector.V) bool

func (R) Intersect

func (r R) Intersect(s R) (R, bool)

func (R) IntersectBuf added in v0.7.0

func (r R) IntersectBuf(s R, b *R) bool

IntersectBuf calculates the rectangle of intersection between two rectangles and writes to a rectangle buffer.

N.B.: The buffer min and max properties must match the dimensions of the input rectangles.

func (R) Max

func (r R) Max() vector.V

func (R) Min

func (r R) Min() vector.V

Jump to

Keyboard shortcuts

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