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.

Parameters

t

Point

vector to be tested

a

Point

initial vector

b

Point

final vector

Returns

boolean

true if the vector is among the others