MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ cross_2d()

float MayaFlux::Kinesis::cross_2d ( const glm::vec2 &  a,
const glm::vec2 &  b 
)
inlinenoexcept

2D scalar cross product, sign of turn direction

Parameters
aFirst vector
bSecond vector
Returns
a.x*b.y - a.y*b.x. Positive is CCW from a to b, negative CW.

Definition at line 386 of file Differential.hpp.

387{
388 return a.x * b.y - a.y * b.x;
389}
size_t a
size_t b

References a, and b.

Referenced by curvature().

+ Here is the caller graph for this function: