vector

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package vector defines utility functions on vectors in 2D ambient space.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNormalOrientation

func IsNormalOrientation(v vector.V, u vector.V) bool

IsNormalOrientation checks the angle between two vectors and returns true if the angle is strictly less than π.

A non-negative determinant of two 2D vectors indicates the angle between them is 0 <= 𝜃 <= π. We care in orientation-related problems to ensure that vectors are not anti-parallel, so an addional check is necessary.

Types

This section is empty.

Jump to

Keyboard shortcuts

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