Skip to content

isBetweenVectors

isBetweenVectors(t, a, b): boolean

Defined in: src/util/misc/vectors.ts:94

Checks if the vector is between two others. It is considered to be inside when the vector to be tested is between the initial vector and the final vector (included) in a counterclockwise direction.

Point

vector to be tested

Point

initial vector

Point

final vector

boolean

true if the vector is among the others