constraint

package
v0.14.5 Latest Latest
Warning

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

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

Documentation

Overview

Package constraint implements an N-dimensional linear constraint embedded in N-dimensional ambient space.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type C

type C hyperplane.HP

C defines an N-dimensional linear constraint of the (standard) form embedded in N-dimensional ambient space.

A • X <= B

For two dimensions, this is

a_x * x + a_y * y <= b

func New

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

func (C) A

func (c C) A() []float64

A returns the A vector of the contraint; returns [a, b] in the 2D case.

func (C) B

func (c C) B() float64

B returns the bound on the constraint.

func (C) In

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

Jump to

Keyboard shortcuts

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