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 ¶
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.
Click to show internal directories.
Click to hide internal directories.