cross2A function

void cross2A (double x, Vector2 y, Vector2 out)

2D cross product. double x vec2.

Implementation

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