2D Vector
Specifies a direction and a magnitude
- Represented by two coordinates
- Magnitude ||V|| = sqrt(dxdx + dydy)
- Has no location
-
-
-
-
-
Dot product of two 2D vectors
- V1·V2 = dx1dx2 + dy1dy2
- V1·V2 = ||V1 || || V2 || cos(Q)
typedef struct {
Coordinate dx;
Coordinate dy;
} Vector;