cross2B function

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

2D cross product. vec2 x double.

Implementation

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