plane

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package plane implements an 2D plane in N-dimensional ambient space.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type P

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

P implements a plane of the Hesse normal form

(N • X) / || N || + R = 0

where

R = -(N • P) / || N ||

func New

func New(p vector.V, n vector.V) *P

func (P) Distance

func (p P) Distance(v vector.V) float64

func (P) N

func (p P) N() vector.V

func (P) P

func (p P) P() vector.V

func (P) R

func (p P) R() float64

Jump to

Keyboard shortcuts

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