Linear Algebra

Table of Contents

Cross Product

2D Game Use Case

float cross(const Vec2 &a, const Vec2 &b)
{
    return a.x * b.y - a.y * b.x;
}