cross2A function

void cross2A(
  1. double x,
  2. Vector2 y,
  3. Vector2 out
)

2D cross product. double x vec2.

Implementation

void cross2A(double x, Vector2 y, Vector2 out) {
  final tempy = x * y.x;
  out
    ..x = -x * y.y
    ..y = tempy;
}