hypersphere

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: 2

Documentation

Overview

Package hypersphere is an N-dimensional ball embedded into an N-dimensional ambient space.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Within added in v0.8.0

func Within(c C, d C) bool

Types

type C

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

func New

func New(p vector.V, r float64) *C

func (C) In

func (c C) In(p vector.V) bool

func (C) P

func (c C) P() vector.V

func (C) R

func (c C) R() float64

Jump to

Keyboard shortcuts

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